diff options
author | Devin Lu <Devin.Lu@quantatw.com> | 2020-07-07 10:54:33 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-07-10 08:37:46 +0000 |
commit | 0f375d832f747696e60dc700509b545affdfef46 (patch) | |
tree | b7a56253066524cc5eb2f66665d75a4f5ce009fe /board/drawcia/usb_pd_policy.c | |
parent | 4223c72d3ba9ef5ca28feb4701f575444b702a53 (diff) | |
download | chrome-ec-0f375d832f747696e60dc700509b545affdfef46.tar.gz |
drawcia: enable hdmi daughterboard
HDMI_HPD will connect volup GPIO with HDMI DB. This change uses the
CBI FW_CONFIG field to determine if the HDMI DB should be present,
and set interrupt accordingly.
BUG=none
BRANCH=none
TEST=Set FW_CONFIG to 0x0004 and make sure C1 port works.
Set FW_CONFIG to 0x0003 and make sure HDMI port works with re-work DB.
Signed-off-by: Devin Lu <Devin.Lu@quantatw.com>
Change-Id: Ifbed3d24b4101b2d4b1168de1b8351ace171d532
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2284515
Reviewed-by: Diana Z <dzigterman@chromium.org>
Diffstat (limited to 'board/drawcia/usb_pd_policy.c')
-rw-r--r-- | board/drawcia/usb_pd_policy.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/board/drawcia/usb_pd_policy.c b/board/drawcia/usb_pd_policy.c index 0fc682b28e..f9ff88c26c 100644 --- a/board/drawcia/usb_pd_policy.c +++ b/board/drawcia/usb_pd_policy.c @@ -26,7 +26,7 @@ void pd_power_supply_reset(int port) { int prev_en; - if (port < 0 || port >= CONFIG_USB_PD_PORT_MAX_COUNT) + if (port < 0 || port >= board_get_usb_pd_port_count()) return; /* TODO(b/147440290): charger functions should take chgnum */ |