diff options
author | Raymond Chung <raymondchung@ami.corp-partner.google.com> | 2022-11-28 11:40:34 +0800 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-12-02 04:52:53 +0000 |
commit | 25b49cfcb6368a9ee1811f73d1be0c5f63dbd208 (patch) | |
tree | c3b084d401dc6ffef002c8607ca8a9afadd829c3 /board/gaelin/board.h | |
parent | 72ae3419d58a781bb2f01f3e24f095989f193719 (diff) | |
download | chrome-ec-25b49cfcb6368a9ee1811f73d1be0c5f63dbd208.tar.gz |
gaelin: Add USB-A retimer support
Initialize PS8811 retimer for USB-A0 and USB-A1. Print an error if
retimer does not respond to i2c read.
BUG=b:237517617
BRANCH=None
TEST=PS8811 is detected on the console.
Change-Id: I7f7bf9f6cb030141bc5de6018353b8ffb6d11686
Signed-off-by: Raymond Chung <raymondchung@ami.corp-partner.google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4060626
Reviewed-by: Zhuohao Lee <zhuohao@chromium.org>
Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
Diffstat (limited to 'board/gaelin/board.h')
-rw-r--r-- | board/gaelin/board.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/board/gaelin/board.h b/board/gaelin/board.h index 166f0f1432..25b424b782 100644 --- a/board/gaelin/board.h +++ b/board/gaelin/board.h @@ -27,6 +27,7 @@ /* USB Type A Features */ #define USB_PORT_COUNT 4 #define CONFIG_USB_PORT_POWER_DUMB +#define CONFIG_USBC_RETIMER_PS8811 /* USB Type C and USB PD defines */ #define CONFIG_USB_PD_REQUIRE_AP_MODE_ENTRY @@ -93,6 +94,8 @@ #define I2C_PORT_USB_C0_BC12 NPCX_I2C_PORT2_0 #define I2C_PORT_USB_C1_BC12 NPCX_I2C_PORT3_0 +#define I2C_PORT_USB_A0_A1_MIX NPCX_I2C_PORT6_1 + #define I2C_PORT_EEPROM NPCX_I2C_PORT7_0 #define I2C_PORT_MP2964 NPCX_I2C_PORT7_0 @@ -161,6 +164,8 @@ enum fan_channel { FAN_CH_0 = 0, FAN_CH_COUNT }; enum mft_channel { MFT_CH_0 = 0, MFT_CH_COUNT }; +enum usba_port { USBA_PORT_A0 = 0, USBA_PORT_A1, USBA_PORT_COUNT }; + extern void adp_connect_interrupt(enum gpio_signal signal); #endif /* !__ASSEMBLER__ */ |