diff options
author | Vijay Hiremath <vijay.p.hiremath@intel.com> | 2021-04-12 16:59:35 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-04-26 23:35:30 +0000 |
commit | a9e2234713340cdb90650a1e78e503f8f3187971 (patch) | |
tree | 02a8b00e817443930d57818e5c290ba950202cf4 /baseboard/intelrvp/adlrvp.h | |
parent | dcd12ff2571571e8ca616418b61233a18990fb54 (diff) | |
download | chrome-ec-a9e2234713340cdb90650a1e78e503f8f3187971.tar.gz |
ADLRVP: Make code robust for validating TCPC vendors
Intel Reference Validation Platform is designed to test multiple
combinations of hardware thus help enable vendors seamlessly.
Added task based TCPC code enablement so that TCPC vendors can easily
hook their hardware, make the code changes and validate their TCPC.
BUG=none
BRANCH=none
TEST=make buildall -j
Change-Id: I989b6a35c6ff3f96150d09de11458886f9642d1f
Signed-off-by: Vijay Hiremath <vijay.p.hiremath@intel.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2823167
Reviewed-by: Sooraj Govindan <sooraj.govindan@intel.com>
Reviewed-by: caveh jalali <caveh@chromium.org>
Diffstat (limited to 'baseboard/intelrvp/adlrvp.h')
-rw-r--r-- | baseboard/intelrvp/adlrvp.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/baseboard/intelrvp/adlrvp.h b/baseboard/intelrvp/adlrvp.h index 9703a39bb2..f2e264e181 100644 --- a/baseboard/intelrvp/adlrvp.h +++ b/baseboard/intelrvp/adlrvp.h @@ -26,10 +26,14 @@ #define CONFIG_CHIPSET_ALDERLAKE /* USB PD config */ -#if defined(HAS_TASK_PD_C2) && defined(HAS_TASK_PD_C3) +#if defined(HAS_TASK_PD_C3) #define CONFIG_USB_PD_PORT_MAX_COUNT 4 -#else +#elif defined(HAS_TASK_PD_C2) +#define CONFIG_USB_PD_PORT_MAX_COUNT 3 +#elif defined(HAS_TASK_PD_C1) #define CONFIG_USB_PD_PORT_MAX_COUNT 2 +#else +#define CONFIG_USB_PD_PORT_MAX_COUNT 1 #endif #define CONFIG_USB_MUX_VIRTUAL #define PD_MAX_POWER_MW 100000 @@ -59,7 +63,9 @@ /* Config BB retimer */ #define CONFIG_USBC_RETIMER_INTEL_BB #define I2C_PORT0_BB_RETIMER_ADDR 0x56 +#if defined(HAS_TASK_PD_C1) #define I2C_PORT1_BB_RETIMER_ADDR 0x57 +#endif #if defined(HAS_TASK_PD_C2) #define I2C_PORT2_BB_RETIMER_ADDR 0x58 #endif @@ -110,7 +116,9 @@ enum adlrvp_charge_ports { TYPE_C_PORT_0, +#if defined(HAS_TASK_PD_C1) TYPE_C_PORT_1, +#endif #if defined(HAS_TASK_PD_C2) TYPE_C_PORT_2, #endif |