summaryrefslogtreecommitdiff
path: root/board/fleex
diff options
context:
space:
mode:
authorKarthikeyan Ramasubramanian <kramasub@chromium.org>2018-11-14 16:13:14 -0700
committerchrome-bot <chrome-bot@chromium.org>2018-11-29 19:31:14 -0800
commitbd0b8ae15db2eba7585638a0d0f153d2906d1779 (patch)
tree2043aec24cb0c0dd7a63ac01d9658b5086295e2e /board/fleex
parentbd19b03b128db664dfb5e6582810bd177b635408 (diff)
downloadchrome-ec-bd0b8ae15db2eba7585638a0d0f153d2906d1779.tar.gz
board/fleex/gpio: Add missing GPIO configuration for Board Id 2
Set the unused pins as input with an internal pull-up if there is no external pull-up/pull-down. This helps save some power. Update the name for CCD_MODE_EC_L pin. Add configuration for USB_C_OC and TRACKPAD_INT_1V8_ODL pins. BRANCH=None BUG=b:110192175 TEST=make -j buildall && Bootup to chromeos. Also verified that power stayed the same or slightly lower(18.67mW on PP3300_ec_mw to 18.23 mW over 10 sec average on Grabitter). Change-Id: Icad1da2f76e119f2571769e3e953ff80c714817e Signed-off-by: Karthikeyan Ramasubramanian <kramasub@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/1336733 Commit-Ready: ChromeOS CL Exonerator Bot <chromiumos-cl-exonerator@appspot.gserviceaccount.com> Reviewed-by: Jett Rink <jettrink@chromium.org>
Diffstat (limited to 'board/fleex')
-rw-r--r--board/fleex/gpio.inc21
1 files changed, 18 insertions, 3 deletions
diff --git a/board/fleex/gpio.inc b/board/fleex/gpio.inc
index 3a15fdc2fb..e20a6ed4b9 100644
--- a/board/fleex/gpio.inc
+++ b/board/fleex/gpio.inc
@@ -137,19 +137,34 @@ GPIO(LED_2_CHG_AMBER_L, PIN(C, 4), GPIO_OUT_HIGH)
/* Keyboard Backlight */
GPIO(KB_BL_PWR_EN, PIN(6, 2), GPIO_OUT_LOW)
+/* Overcurrent event to host */
+GPIO(USB_C_OC, PIN(3, 6), GPIO_ODR_HIGH | GPIO_SEL_1P8V)
+
+/* Misc. */
+GPIO(CCD_MODE_EC_L, PIN(E, 3), GPIO_INPUT)
+GPIO(TRACKPAD_INT_1V8_ODL, PIN(9, 3), GPIO_INPUT | GPIO_SEL_1P8V)
+
/* Camera */
GPIO(EC_GPIO03, PIN(0, 3), GPIO_INPUT) /* TP only */
GPIO(EC_INT_L, PIN(9, 4), GPIO_INPUT) /* EC_AP_INT_ODL - Unused GPIO_ODR_HIGH */
-/* Misc. */
-GPIO(CCD_MODE_EC_L, PIN(E, 3), GPIO_INPUT)
+/* Unused Pins */
+GPIO(CHARGER_PMON, PIN(4, 2), GPIO_INPUT)
+GPIO(CHARGER_IADP, PIN(4, 3), GPIO_INPUT)
+GPIO(EC_GPIO57, PIN(5, 7), GPIO_INPUT | GPIO_PULL_UP) /* TP Only */
+GPIO(EC_GPIO97, PIN(9, 7), GPIO_INPUT | GPIO_PULL_UP) /* TP Only */
+GPIO(EC_I2S_SFRM, PIN(A, 5), GPIO_INPUT | GPIO_SEL_1P8V)
+GPIO(EC_I2S_SCLK, PIN(A, 7), GPIO_INPUT | GPIO_SEL_1P8V)
+GPIO(EC_I2S_TX_PCH_RX, PIN(B, 0), GPIO_INPUT | GPIO_SEL_1P8V)
+GPIO(LED_3_L, PIN(D, 7), GPIO_INPUT)
/* Keyboard pins */
ALTERNATE(PIN_MASK(3, 0x03), 0, MODULE_KEYBOARD_SCAN, GPIO_INPUT) /* KSI_00-01 */
ALTERNATE(PIN_MASK(2, 0xFC), 0, MODULE_KEYBOARD_SCAN, GPIO_INPUT) /* KSI_02-07 */
ALTERNATE(PIN_MASK(2, 0x03), 0, MODULE_KEYBOARD_SCAN, GPIO_ODR_HIGH) /* KSO_00-01 */
ALTERNATE(PIN_MASK(1, 0x7F), 0, MODULE_KEYBOARD_SCAN, GPIO_ODR_HIGH) /* KSO_03-09 */
-ALTERNATE(PIN_MASK(0, 0xE0), 0, MODULE_KEYBOARD_SCAN, GPIO_ODR_HIGH) /* KSO_10-12 */
+ALTERNATE(PIN_MASK(0, 0xF0), 0, MODULE_KEYBOARD_SCAN, GPIO_ODR_HIGH) /* KSO_10-13 */
+ALTERNATE(PIN_MASK(8, 0x04), 0, MODULE_KEYBOARD_SCAN, GPIO_ODR_HIGH) /* KSO_14 */
GPIO(KBD_KSO2, PIN(1, 7), GPIO_OUT_LOW) /* KSO_02 inverted */
/* Alternate functions GPIO definitions */