diff options
author | Diana Z <dzigterman@chromium.org> | 2020-06-29 22:21:13 -0600 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-07-13 20:18:18 +0000 |
commit | a84226e43fdc152fc6b0a32d75cfd107c342becd (patch) | |
tree | 04cb40dbcd4671dcfd1941cc2202cf70d11feaf1 /board/waddledoo/usb_pd_policy.c | |
parent | 4f17647abe500a84b2e3b647830dfc3dce99afdf (diff) | |
download | chrome-ec-a84226e43fdc152fc6b0a32d75cfd107c342becd.tar.gz |
Waddledoo: Enable HDMI daughterboard
Sub-board GPIOs are connected to different signals when the HDMI
daughterboard is attached. This change uses the CBI FW_CONFIG field to
determine if the HDMI DB should be present, and re-configures the GPIO
modules and flags accordingly.
This change also switches waddledoo to use the run-time determination
for maximum type-c ports.
BRANCH=None
BUG=b:155963446
TEST=on waddledoo with type-c DB, C1 still works
on waddledoo with HDMI DB and FW_CONFIG set to 0x0003 HDMI plug-ins
are detected and the USB-A port functions
Signed-off-by: Diana Z <dzigterman@chromium.org>
Change-Id: Ie093706e3bf515efa53223aec761714062f2f427
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2274993
Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
Diffstat (limited to 'board/waddledoo/usb_pd_policy.c')
-rw-r--r-- | board/waddledoo/usb_pd_policy.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/board/waddledoo/usb_pd_policy.c b/board/waddledoo/usb_pd_policy.c index bcdf8300c5..905e049937 100644 --- a/board/waddledoo/usb_pd_policy.c +++ b/board/waddledoo/usb_pd_policy.c @@ -37,7 +37,7 @@ int pd_set_power_supply_ready(int port) { int rv; - if (port >= CONFIG_USB_PD_PORT_MAX_COUNT) + if (port >= board_get_usb_pd_port_count()) return EC_ERROR_INVAL; /* Disable charging. */ |