diff options
author | Kevin K Wong <kevin.k.wong@intel.com> | 2015-11-13 13:22:08 -0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2015-11-17 14:40:11 -0800 |
commit | 2d57e6f6d98a06abd55e193b6f5d193280f01988 (patch) | |
tree | da2f987db591740793b8c4f40fe82fdbb5724a35 /board/kunimitsu/gpio.inc | |
parent | fca995376eb763ee58252faae26b2a38d887685b (diff) | |
download | chrome-ec-2d57e6f6d98a06abd55e193b6f5d193280f01988.tar.gz |
kunimitsu: update for fab 4
update gpio and i2c mapping based on fab 4 hardware
BUG=none
BRANCH=none
TEST=verified image can boot on kunimitsu fab 4 (build w/ undef fab 3 flag)
Change-Id: I3acb2fc57eaff73d1b1b1bc7f41c76035ccdd81a
Signed-off-by: Kevin K Wong <kevin.k.wong@intel.com>
Reviewed-on: https://chromium-review.googlesource.com/312559
Reviewed-by: Shawn N <shawnn@chromium.org>
Diffstat (limited to 'board/kunimitsu/gpio.inc')
-rw-r--r-- | board/kunimitsu/gpio.inc | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/board/kunimitsu/gpio.inc b/board/kunimitsu/gpio.inc index 6cfb9674eb..3a1e01ae7c 100644 --- a/board/kunimitsu/gpio.inc +++ b/board/kunimitsu/gpio.inc @@ -84,7 +84,7 @@ GPIO(PCH_RCIN_L, PIN(135), GPIO_ODR_HIGH) #ifdef BOARD_KUNIMITSU_V3 GPIO(EC_FAN1_PWM, PIN(136), GPIO_OUT_LOW) #else -GPIO(NC_136, PIN(136), GPIO_INPUT | GPIO_PULL_UP) /* Reserved for KBD Backlight */ +GPIO(NC_136, PIN(136), GPIO_INPUT | GPIO_PULL_UP) /* Reserved for KBD Backlight */ #endif #ifdef BOARD_KUNIMITSU_V3 @@ -102,8 +102,13 @@ GPIO(PLATFORM_EC_PROCHOT, PIN(151), GPIO_INPUT) GPIO(USB_C0_5V_EN, PIN(154), GPIO_OUT_LOW) GPIO(USB_C1_5V_EN, PIN(204), GPIO_OUT_LOW) GPIO(USB_C0_CHARGE_EN_L, PIN(64), GPIO_OUT_LOW) +#ifdef BOARD_KUNIMITSU_V3 GPIO(USB_C1_CHARGE_EN_L, PIN(157), GPIO_OUT_LOW) -GPIO(NC_011, PIN(11), GPIO_INPUT | GPIO_PULL_UP) +#else +GPIO(USB_C1_CHARGE_EN_L, PIN(210), GPIO_OUT_LOW) +#endif +/* Reserved for USB-A ILIM */ +GPIO(USB_ILIM_SEL, PIN(11), GPIO_INPUT | GPIO_PULL_UP) #ifdef BOARD_KUNIMITSU_V3 GPIO(LID_OPEN2, PIN(160), GPIO_INPUT | GPIO_PULL_UP) #else @@ -114,15 +119,18 @@ GPIO(PCH_RTCRST_L, PIN(163), GPIO_ODR_HIGH) #ifdef BOARD_KUNIMITSU_V3 GPIO(NC_201, PIN(201), GPIO_INPUT | GPIO_PULL_UP) #else -GPIO(PMIC_SLP_SUS_L, PIN(201), GPIO_OUT_LOW) +GPIO(PMIC_SLP_SUS_L, PIN(201), GPIO_OUT_LOW) #endif GPIO(ENABLE_BACKLIGHT, PIN(202), GPIO_OUT_HIGH) GPIO(PP3300_WLAN_EN, PIN(203), GPIO_OUT_HIGH) +#ifdef BOARD_KUNIMITSU_V3 GPIO(EC_WAKE_CLK, PIN(210), GPIO_INPUT) +#else +GPIO(CHG_1A5_EN, PIN(157), GPIO_OUT_HIGH) +#endif GPIO(BOARD_VERSION1, PIN(6), GPIO_INPUT) GPIO(BOARD_VERSION2, PIN(7), GPIO_INPUT) GPIO(BOARD_VERSION3, PIN(10), GPIO_INPUT) -GPIO(KBD_KSO2, PIN(101), GPIO_KB_OUTPUT_COL2) GPIO(PVT_CS0, PIN(146), GPIO_ODR_HIGH) GPIO(SYS_RESET_L, PIN(121), GPIO_ODR_HIGH) @@ -139,8 +147,13 @@ ALTERNATE(PIN_MASK(16, 0x24), 1, MODULE_UART, 0) /* KB ROW - GPIO000-GPIO005 */ ALTERNATE(PIN_MASK(0, 0x3f), 3, MODULE_KEYBOARD_SCAN, GPIO_KB_OUTPUT) /* KB ROW - GPIO100-GPIO104, GPIO106-GPIO107 */ +#ifdef BOARD_KUNIMITSU_V3 /* NOTE - GP101 should be configured as GPIO */ ALTERNATE(PIN_MASK(10, 0xdd), 3, MODULE_KEYBOARD_SCAN, GPIO_KB_OUTPUT) +GPIO(KBD_KSO2, PIN(101), GPIO_OUT_LOW) +#else +ALTERNATE(PIN_MASK(10, 0xdf), 3, MODULE_KEYBOARD_SCAN, GPIO_KB_OUTPUT) +#endif /* BOARD_KUNIMITSU_V3 */ /* KB COL - GPIO032 */ ALTERNATE(PIN_MASK(3, 0x04), 3, MODULE_KEYBOARD_SCAN, GPIO_KB_INPUT) /* KB COL - GPIO040, GPIO42-GPIO43 */ |