diff options
author | Mary Ruthven <mruthven@chromium.org> | 2016-09-14 10:37:54 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2016-09-21 19:37:03 -0700 |
commit | 05d387da7873d318d20a5480a761ae35866630a0 (patch) | |
tree | f4e36caae155799ee98c12c893cbd80527b705cd /board/cr50/gpio.inc | |
parent | 7d430cde7ee6f39e55b5b7ef2863c1263f699eaf (diff) | |
download | chrome-ec-05d387da7873d318d20a5480a761ae35866630a0.tar.gz |
cr50: remove unused detect_off interrupt
The interrupts to detect when the falling edge on the UART signals are
currently disabled and never reenabled. Power off is detected by polling
and not through interrupts. This change removes all of those falling
edge interrupts.
BUG=none
BRANCH=none
TEST=cr50 can detect when the EC, AP, and Servo are off or on
Change-Id: I0fd8a0d970f3235b26af6b90dd395ea7c75e0c17
Signed-off-by: Mary Ruthven <mruthven@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/385192
Reviewed-by: Bill Richardson <wfrichar@chromium.org>
Diffstat (limited to 'board/cr50/gpio.inc')
-rw-r--r-- | board/cr50/gpio.inc | 19 |
1 files changed, 6 insertions, 13 deletions
diff --git a/board/cr50/gpio.inc b/board/cr50/gpio.inc index 3c40599034..780ec633e7 100644 --- a/board/cr50/gpio.inc +++ b/board/cr50/gpio.inc @@ -13,14 +13,10 @@ * so we attach two internal GPIOs to the same pad. */ GPIO_INT(SYS_RST_L_IN, PIN(1, 0), GPIO_INT_FALLING, sys_rst_asserted) -GPIO_INT(AP_ON, PIN(1, 1), GPIO_INT_RISING, device_state_on) -GPIO_INT(EC_ON, PIN(1, 2), GPIO_INT_RISING, device_state_on) -GPIO_INT(SERVO_UART2_ON, PIN(1, 3), GPIO_INT_RISING | GPIO_PULL_DOWN, +GPIO_INT(DETECT_AP, PIN(1, 1), GPIO_INT_RISING, device_state_on) +GPIO_INT(DETECT_EC, PIN(1, 2), GPIO_INT_RISING, device_state_on) +GPIO_INT(DETECT_SERVO, PIN(1, 3), GPIO_INT_RISING | GPIO_PULL_DOWN, device_state_on) -GPIO_INT(AP_OFF, PIN(1, 4), GPIO_INT_FALLING, device_state_off) -GPIO_INT(EC_OFF, PIN(1, 5), GPIO_INT_FALLING, device_state_off) -GPIO_INT(SERVO_UART2_OFF, PIN(1, 6), GPIO_INT_FALLING | GPIO_PULL_DOWN, - device_state_off) /* Pull this low to interrupt the AP */ GPIO(INT_AP_L, PIN(0, 0), GPIO_OUT_HIGH) @@ -97,12 +93,9 @@ PINMUX(FUNC(UART2_RX), B6, DIO_INPUT) /* EC console */ * driving the cr50 uart TX at the same time as servo is driving those pins may * damage both servo and cr50. */ -PINMUX(GPIO(AP_ON), A3, DIO_INPUT) -PINMUX(GPIO(AP_OFF), A3, DIO_INPUT) -PINMUX(GPIO(EC_ON), B6, DIO_INPUT) -PINMUX(GPIO(EC_OFF), B6, DIO_INPUT) -PINMUX(GPIO(SERVO_UART2_ON), B5, DIO_INPUT) -PINMUX(GPIO(SERVO_UART2_OFF), B5, DIO_INPUT) +PINMUX(GPIO(DETECT_AP), A3, DIO_INPUT) +PINMUX(GPIO(DETECT_EC), B6, DIO_INPUT) +PINMUX(GPIO(DETECT_SERVO), B5, DIO_INPUT) /* * I2CS pins are bi-directional and would be configured here as shown. However, |