diff options
author | Ben Chen <ben.chen2@quanta.corp-partner.google.com> | 2020-08-07 16:31:50 +0800 |
---|---|---|
committer | Justin TerAvest <teravest@chromium.org> | 2020-08-11 01:39:48 +0000 |
commit | 9b0b66a699ff0a6af1d0c8b10b3551fc37b9c588 (patch) | |
tree | 01a3956c91f7697ac97221b08b23aa97db985b2c /board/magolor/gpio.inc | |
parent | 59de00c77d17ecd95b7f3f8a2f0222f8dc4576f9 (diff) | |
download | chrome-ec-9b0b66a699ff0a6af1d0c8b10b3551fc37b9c588.tar.gz |
magolor: support USB-A
config USB-A pin define, and enable USB SMART function
BUG=b:155944657
BRANCH=none
TEST=make buildall pass,
Change-Id: Icefa622bb575236ad24e33fe00ce4fb26dd4d2e7
Signed-off-by: Ben Chen <ben.chen2@quanta.corp-partner.google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2342944
Reviewed-by: Diana Z <dzigterman@chromium.org>
Diffstat (limited to 'board/magolor/gpio.inc')
-rw-r--r-- | board/magolor/gpio.inc | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/board/magolor/gpio.inc b/board/magolor/gpio.inc index 2358addc21..452d40789d 100644 --- a/board/magolor/gpio.inc +++ b/board/magolor/gpio.inc @@ -53,7 +53,7 @@ GPIO(EC_I2C_SUB_USB_C1_SCL, PIN(9, 2), GPIO_INPUT) GPIO(EC_I2C_SUB_USB_C1_SDA, PIN(9, 1), GPIO_INPUT) /* Extra Sub-board I/O pins */ -GPIO(EC_SUB_IO_1, PIN(3, 7), GPIO_OUT_LOW) + GPIO(EC_SUB_IO_2, PIN(3, 4), GPIO_OUT_LOW) /* Misc Enables */ @@ -86,12 +86,16 @@ GPIO(ALL_SYS_PWRGD, PIN(A, 0), GPIO_OUT_LOW) GPIO(SYS_RST_ODL, PIN(C, 5), GPIO_ODR_HIGH) GPIO(CCD_MODE_ODL, PIN(E, 5), GPIO_INPUT) +/* USB pins */ GPIO(USB_C0_RST_ODL, PIN(9, 7), GPIO_OUT_HIGH) /* currently unused */ GPIO(EC_AP_USB_C1_HDMI_HPD, PIN(9, 6), GPIO_OUT_LOW) GPIO(EC_AP_USB_C0_HPD, PIN(9, 3), GPIO_OUT_LOW) GPIO(HDMI_SEL_L, PIN(7, 2), GPIO_OUT_HIGH) GPIO(EC_BATTERY_PRES_ODL, PIN(E, 1), GPIO_INPUT) - +GPIO(USB_A0_CHARGE_EN_L, PIN(3, 7), GPIO_OUT_HIGH) /* Enable A0 1.5A Charging */ +GPIO(USB_A1_CHARGE_EN_L, PIN(F, 3), GPIO_OUT_HIGH) /* Enable A1 1.5A Charging */ +GPIO(EN_USB_A0_VBUS, PIN(4, 1), GPIO_OUT_LOW) /* Enable A1 5V Charging */ +GPIO(EN_USB_A1_VBUS, PIN(F, 2), GPIO_OUT_LOW) /* Enable A1 5V Charging */ /* * Waddledoo doesn't have these physical pins coming to the EC but uses other * logic. |