diff options
author | Edward Hill <ecgh@chromium.org> | 2020-05-04 19:56:11 -0600 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-05-05 05:51:29 +0000 |
commit | 95abc80e5b38434f92204eece73bc6974fdd30ac (patch) | |
tree | ee5949f7e039e0cb714fb46ae0766f6651c8c027 /board/dalboz | |
parent | af09e1bdd78924850fd6f1c188c9203c77757153 (diff) | |
download | chrome-ec-95abc80e5b38434f92204eece73bc6974fdd30ac.tar.gz |
Zork: Add PI3HDX1204 power control.
Power the PI3HDX1204 HDMI retimer on at resume and off at suspend.
BUG=b:154874071
BRANCH=none
TEST=HDMI still works
Signed-off-by: Edward Hill <ecgh@chromium.org>
Change-Id: I1753177db4b99d2c4a6af0720ace70ad3ba7f530
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2181794
Reviewed-by: Denis Brockus <dbrockus@chromium.org>
Commit-Queue: Denis Brockus <dbrockus@chromium.org>
Diffstat (limited to 'board/dalboz')
-rw-r--r-- | board/dalboz/board.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/board/dalboz/board.h b/board/dalboz/board.h index f1bca86904..714417480b 100644 --- a/board/dalboz/board.h +++ b/board/dalboz/board.h @@ -148,6 +148,15 @@ static inline bool ec_config_has_usbc1_retimer_ps8740(void) HAS_USBC1_RETIMER_PS8740); } +#define HAS_HDMI_RETIMER_PI3HDX1204 \ + (BIT(DALBOZ_DB_D_OPT2_USBA_HDMI)) + +static inline bool ec_config_has_hdmi_retimer_pi3hdx1204(void) +{ + return !!(BIT(ec_config_get_usb_db()) & + HAS_HDMI_RETIMER_PI3HDX1204); +} + /* These IO expander GPIOs vary with DB option. */ extern enum gpio_signal IOEX_USB_A1_RETIMER_EN; extern enum gpio_signal IOEX_USB_A1_CHARGE_EN_DB_L; |