summaryrefslogtreecommitdiff
path: root/board/yorp/gpio.inc
diff options
context:
space:
mode:
authorJett Rink <jettrink@chromium.org>2018-05-17 09:38:07 -0700
committerchrome-bot <chrome-bot@chromium.org>2018-05-18 20:08:26 -0700
commit5551befe2a0bf0e6958d7830aefb0026f05843d1 (patch)
tree6f25db1546a2b3b39703c3813c0433764f676e47 /board/yorp/gpio.inc
parent04fbcdb20f5f6c52c10f04e2113fd190a1847745 (diff)
downloadchrome-ec-5551befe2a0bf0e6958d7830aefb0026f05843d1.tar.gz
octopus: enable trackpad (S3+) and backlight (S0)
Enable trackpad when entering S3, and display backlight when entering S0 and disable them on the opposite transition. Moving common code to baseboard. BRANCH=none BUG=b:79900266 TEST=bip trackpad works in S3 as wake source. backlight turns off in S0ix and S3. Change-Id: I0937771093d87c020b3c0d94a482d108c5a5c180 Signed-off-by: Jett Rink <jettrink@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/1064693 Reviewed-by: Furquan Shaikh <furquan@chromium.org>
Diffstat (limited to 'board/yorp/gpio.inc')
-rw-r--r--board/yorp/gpio.inc7
1 files changed, 5 insertions, 2 deletions
diff --git a/board/yorp/gpio.inc b/board/yorp/gpio.inc
index 5b16c12efc..ec4e084bd3 100644
--- a/board/yorp/gpio.inc
+++ b/board/yorp/gpio.inc
@@ -61,13 +61,16 @@ GPIO(PCH_PWRBTN_L, PIN(C, 1), GPIO_ODR_HIGH) /* GPIO_PCH_PWRBTN_L */
GPIO(EN_PP5000, PIN(7, 3), GPIO_OUT_LOW) /* EN_PP5000_A */
GPIO(PP5000_PG, PIN(C, 0), GPIO_INPUT) /* PP5000_PG_OD */
-GPIO(EN_P3300_TRACKPAD_ODL, PIN(3, 3), GPIO_ODR_HIGH)
GPIO(EN_PP3300, PIN(D, 4), GPIO_OUT_LOW) /* EN_PP3300_A */
GPIO(PP3300_PG, PIN(6, 0), GPIO_INPUT) /* PP3300_PG_OD */
GPIO(PMIC_EN, PIN(7, 2), GPIO_OUT_LOW) /* Enable A Rails via PMIC */
GPIO(PCH_RSMRST_L, PIN(C, 2), GPIO_OUT_LOW) /* RSMRST# to SOC. All _A rails now up. */
GPIO(PCH_SYS_PWROK, PIN(B, 7), GPIO_OUT_LOW) /* EC_PCH_PWROK. All S0 rails now up. */
-GPIO(ENABLE_BACKLIGHT, PIN(D, 3), GPIO_ODR_HIGH | GPIO_SEL_1P8V) /* EC_BL_EN_OD */
+
+/* Peripheral rails */
+GPIO(ENABLE_BACKLIGHT, PIN(D, 3), GPIO_ODR_HIGH |
+ GPIO_SEL_1P8V) /* EC_BL_EN_OD */
+GPIO(EN_P3300_TRACKPAD_ODL, PIN(3, 3), GPIO_ODR_HIGH)
GPIO(EC_BATT_PRES_L, PIN(E, 5), GPIO_INPUT)