diff options
author | Edward Hill <ecgh@chromium.org> | 2020-05-11 20:35:22 -0600 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-05-12 19:04:32 +0000 |
commit | 65aa151d0544051118259fc086093670eef26518 (patch) | |
tree | 65c32fa6ce2476bcca352470593a2ff901fa8e16 /board/trembyle/board.h | |
parent | 5c359b906557cd1a1fc80baa11a7043ca169a8b9 (diff) | |
download | chrome-ec-65aa151d0544051118259fc086093670eef26518.tar.gz |
Zork: Use FW_CONFIG for IOEX_MST_HPD_OUT.
Move mst_hpd_interrupt() out of variant_trembyle.c into individual
boards. Use FW_CONFIG to only enable IOEX_MST_HPD_OUT interrupt
when appropriate.
BUG=b:156046102
BRANCH=none
TEST=none
Signed-off-by: Edward Hill <ecgh@chromium.org>
Change-Id: I3f188088254208f01aea2094b7f2b57590b0d91b
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2195186
Reviewed-by: David Huang <david.huang@quanta.corp-partner.google.com>
Reviewed-by: Denis Brockus <dbrockus@chromium.org>
Commit-Queue: Denis Brockus <dbrockus@chromium.org>
Diffstat (limited to 'board/trembyle/board.h')
-rw-r--r-- | board/trembyle/board.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/board/trembyle/board.h b/board/trembyle/board.h index 5af5ef98bb..b6facff8be 100644 --- a/board/trembyle/board.h +++ b/board/trembyle/board.h @@ -172,6 +172,15 @@ static inline bool ec_config_has_hdmi_retimer_pi3hdx1204(void) HAS_HDMI_RETIMER_PI3HDX1204); } +#define HAS_MST_HUB_RTD2141B \ + (BIT(TREMBYLE_DB_T_OPT3_USBAC_HDMI_MSTHUB)) + +static inline bool ec_config_has_mst_hub_rtd2141b(void) +{ + return !!(BIT(ec_config_get_usb_db()) & + HAS_MST_HUB_RTD2141B); +} + #define PORT_TO_HPD(port) ((port == 0) \ ? GPIO_USB_C0_HPD \ : (ec_config_has_usbc1_retimer_ps8802()) \ |