diff options
author | Ting Shen <phoenixshen@google.com> | 2019-09-05 01:20:19 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2019-09-05 11:09:00 +0000 |
commit | 5094437e865bb00c672288b5420b3a257c14d236 (patch) | |
tree | 45684833fab426f5436d599bbd23d81833cb20e8 /board/kukui/gpio.inc | |
parent | 7c16f9c666f20daf9c360678f92fcc7145665315 (diff) | |
download | chrome-ec-5094437e865bb00c672288b5420b3a257c14d236.tar.gz |
krane: add it5205 driver
An it5205 is added in kukui/krane rev 5, and deprecated gpio pin
USB_C0_DP_OE_L and USB_C0_DP_POLARITY.
This CL is intended to make the fw works for both old and new boards:
1) the default usb_mux driver is updated to rev 5, and board_rev_init
may change it back for old boards.
2) keep VARIANT_KUKUI_DP_MUX_GPIO in kukui/board.h, and add a customized
function to set/clear these gpio pins.
BUG=b:135079572
TEST=verify that type c display works on board rev 4/5
BRANCH=master
Change-Id: Ibe28816eed026ccb8a9a5234a612f80b038884f1
Signed-off-by: Ting Shen <phoenixshen@google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1785197
Reviewed-by: Yilun Lin <yllin@chromium.org>
Commit-Queue: Ting Shen <phoenixshen@chromium.org>
Tested-by: Ting Shen <phoenixshen@chromium.org>
Diffstat (limited to 'board/kukui/gpio.inc')
-rw-r--r-- | board/kukui/gpio.inc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/board/kukui/gpio.inc b/board/kukui/gpio.inc index f9ddacc6ec..e90644432b 100644 --- a/board/kukui/gpio.inc +++ b/board/kukui/gpio.inc @@ -48,6 +48,9 @@ GPIO_INT(POGO_ADC_INT_L, PIN(A, 6), GPIO_INT_BOTH, /* unused */ GPIO(POGO_VBUS_PRESENT, PIN(A, 14), GPIO_INPUT) +/* unused after board rev 5 */ +GPIO(USB_C0_DP_POLARITY, PIN(C, 14), GPIO_INPUT) +GPIO(USB_C0_DP_OE_L, PIN(A, 5), GPIO_INPUT) /* Reset pins */ @@ -80,10 +83,8 @@ GPIO(CCD_MODE_ODL, PIN(A, 1), GPIO_INPUT) GPIO(ENTERING_RW, PIN(C, 6), GPIO_ODR_HIGH) /* EC_ENTERING_RW_ODL */ GPIO(EC_INT_L, PIN(B, 12), GPIO_ODR_HIGH) /* EC_AP_INT_ODL */ GPIO(EC_BOARD_ID_EN_L, PIN(C, 15), GPIO_ODR_HIGH) /* EC_BOARD_ID_EN_ODL */ -GPIO(USB_C0_DP_POLARITY, PIN(C, 14), GPIO_OUT_LOW) GPIO(USB_C0_HPD_OD, PIN(F, 1), GPIO_ODR_LOW) GPIO(BOOTBLOCK_EN_L, PIN(C, 1), GPIO_ODR_HIGH) -GPIO(USB_C0_DP_OE_L, PIN(A, 5), GPIO_OUT_HIGH) GPIO(EN_PP3300_POGO, PIN(A, 13), GPIO_OUT_LOW) GPIO(EN_POGO_CHARGE_L, PIN(B, 6), GPIO_OUT_HIGH) GPIO(EN_USBC_CHARGE_L, PIN(C, 7), GPIO_OUT_LOW) |