diff options
author | Yu-An Chen <yu-an.chen@quanta.corp-partner.google.com> | 2023-04-24 11:21:33 +0800 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2023-04-27 13:22:29 +0000 |
commit | ed704ea072e9695c0dd5c2b241b83fffbeb480b8 (patch) | |
tree | 527fdbf1513a3b59f40a66e91dbfae1d40c092e2 | |
parent | 6378b2bd5a61cde2433e92a2ee17f0f7564596da (diff) | |
download | chrome-ec-ed704ea072e9695c0dd5c2b241b83fffbeb480b8.tar.gz |
taranza: Added a USB-A port
Added a USB-A port
Changed GPJ4 to EN_USB_A4_VBUS
BUG=b:277664211
BRANCH=none
TEST=make BOARD=taranza
Change-Id: Ic2690b14b0d8ffae6313d69bc3bab722fc5be0fe
Signed-off-by: Yu-An Chen <yu-an.chen@quanta.corp-partner.google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4462882
Reviewed-by: Zhuohao Lee <zhuohao@chromium.org>
Reviewed-by: Bob Moragues <moragues@chromium.org>
-rw-r--r-- | board/taranza/board.c | 6 | ||||
-rw-r--r-- | board/taranza/board.h | 2 | ||||
-rw-r--r-- | board/taranza/gpio.inc | 2 |
3 files changed, 4 insertions, 6 deletions
diff --git a/board/taranza/board.c b/board/taranza/board.c index 619f609b3c..3c9cc62e2b 100644 --- a/board/taranza/board.c +++ b/board/taranza/board.c @@ -108,10 +108,8 @@ const struct usb_mux_chain usb_muxes[CONFIG_USB_PD_PORT_MAX_COUNT] = { /* USB-A ports */ const int usb_port_enable[USB_PORT_COUNT] = { - GPIO_EN_USB_A0_VBUS, - GPIO_EN_USB_A1_VBUS, - GPIO_EN_USB_A2_VBUS, - GPIO_EN_USB_A3_VBUS, + GPIO_EN_USB_A0_VBUS, GPIO_EN_USB_A1_VBUS, GPIO_EN_USB_A2_VBUS, + GPIO_EN_USB_A3_VBUS, GPIO_EN_USB_A4_VBUS, }; /* PWM channels. Must be in the exactly same order as in enum pwm_channel. */ diff --git a/board/taranza/board.h b/board/taranza/board.h index bb394f7056..9078e4a137 100644 --- a/board/taranza/board.h +++ b/board/taranza/board.h @@ -68,7 +68,7 @@ /* USB Type A Features */ #define CONFIG_USB_PORT_POWER_DUMB -#define USB_PORT_COUNT 4 /* Type A ports */ +#define USB_PORT_COUNT 5 /* Type A ports */ /* No battery */ #undef CONFIG_BATTERY_CUT_OFF diff --git a/board/taranza/gpio.inc b/board/taranza/gpio.inc index 5cd0ef6a8e..7a9b1c3fdc 100644 --- a/board/taranza/gpio.inc +++ b/board/taranza/gpio.inc @@ -100,6 +100,7 @@ GPIO(EN_USB_A0_VBUS, PIN(L, 6), GPIO_OUT_LOW) GPIO(EN_USB_A1_VBUS, PIN(C, 6), GPIO_OUT_LOW) GPIO(EN_USB_A2_VBUS, PIN(C, 4), GPIO_OUT_LOW) GPIO(EN_USB_A3_VBUS, PIN(J, 5), GPIO_OUT_LOW) +GPIO(EN_USB_A4_VBUS, PIN(J, 4), GPIO_OUT_LOW) GPIO(EC_USB_C0_FRS_EN, PIN(K, 6), GPIO_OUT_LOW) GPIO(USB_C0_SBU_MUX_FAULT, PIN(I, 7), GPIO_INPUT) @@ -138,7 +139,6 @@ GPIO(GPIOG7_NC, PIN(G, 7), GPIO_INPUT | GPIO_PULL_DOWN) GPIO(GPIOH4_NC, PIN(H, 4), GPIO_INPUT | GPIO_PULL_DOWN) GPIO(GPIOH6_NC, PIN(H, 6), GPIO_INPUT | GPIO_PULL_DOWN) GPIO(GPIOI4_NC, PIN(I, 4), GPIO_INPUT | GPIO_PULL_DOWN) -GPIO(GPIOJ4_NC, PIN(J, 4), GPIO_INPUT | GPIO_PULL_DOWN) GPIO(GPIOJ6_NC, PIN(J, 6), GPIO_INPUT | GPIO_PULL_DOWN) GPIO(GPIOK3_NC, PIN(K, 3), GPIO_INPUT | GPIO_PULL_DOWN) GPIO(GPIOM6_NC, PIN(M, 6), GPIO_INPUT | GPIO_PULL_DOWN) |