diff options
author | Samsp_Liu <Samsp_Liu@compal.corp-partner.google.com> | 2020-08-07 15:36:57 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-08-26 21:44:45 +0000 |
commit | 6f03934e9564ac28f6a0f564cf1429f209ebfc99 (patch) | |
tree | 241ad37c69314e9b3e6cb7aa4d90a3e281110ca1 /board/halvor/board.h | |
parent | 9df40ef14c84e6575c3fecd2a5522b077b6f34ca (diff) | |
download | chrome-ec-6f03934e9564ac28f6a0f564cf1429f209ebfc99.tar.gz |
volteer: Support board-specific TCPC config
Separate tcpc_config from volteer baseboard to each
project board.
To meet different configurations on each board.
BUG=b:153705222
BRANCH=none
TEST=make buildall
Change-Id: Iea59518123a542ebe38be195eaf71b4a8f796550
Signed-off-by: Samsp_Liu <Samsp_Liu@compal.corp-partner.google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2342183
Tested-by: SamSP Liu <samsp_liu@compal.corp-partner.google.com>
Commit-Queue: Keith Short <keithshort@chromium.org>
Reviewed-by: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'board/halvor/board.h')
-rw-r--r-- | board/halvor/board.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/board/halvor/board.h b/board/halvor/board.h index 4867229a4c..db76698b8f 100644 --- a/board/halvor/board.h +++ b/board/halvor/board.h @@ -42,6 +42,8 @@ (BIT(LID_ACCEL) | BIT(CLEAR_ALS)) /* USB Type C and USB PD defines */ +#define CONFIG_USB_PD_PORT_MAX_COUNT 2 + /* * USB-C port's USB2 & USB3 mapping from schematics * USB2 numbering on PCH - 1 to n @@ -71,6 +73,7 @@ /* Enabling USB4 mode */ #define CONFIG_USB_PD_USB4 +#define USBC_PORT_C1_BB_RETIMER_I2C_ADDR 0x40 /* USB Type A Features */ @@ -163,6 +166,12 @@ enum sensor_id { SENSOR_COUNT, }; +enum usbc_port { + USBC_PORT_C0 = 0, + USBC_PORT_C1, + USBC_PORT_COUNT +}; + /* Definition for Halvor USB PD interrupt handlers. */ void halvor_tcpc_alert_event(enum gpio_signal signal); void halvor_ppc_interrupt(enum gpio_signal signal); |