diff options
author | Zick Wei <zick.wei@quanta.corp-partner.google.com> | 2020-06-18 17:19:11 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-06-19 06:37:06 +0000 |
commit | 7431dd01830327bfadba5a995210517b8ae8c7cf (patch) | |
tree | ebbe43b287e875a6e8cf37c86af621050e11971c /board/morphius | |
parent | ce672c614e13810a40b31e8aca9a01ce553cd6af (diff) | |
download | chrome-ec-7431dd01830327bfadba5a995210517b8ae8c7cf.tar.gz |
morphius: Add HDMI_POWER_EN_DB to NCT3807
The HDMI_POWER_EN_DB signal is set to power HDMI power rail.
BUG=b:150278507
BRANCH=none
TEST=make buildall
Signed-off-by: Zick Wei <zick.wei@quanta.corp-partner.google.com>
Change-Id: Ib2b79083f4518aacef31550432cb23fbf822a6b7
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2251703
Reviewed-by: Denis Brockus <dbrockus@chromium.org>
Reviewed-by: Edward Hill <ecgh@chromium.org>
Diffstat (limited to 'board/morphius')
-rw-r--r-- | board/morphius/board.c | 6 | ||||
-rw-r--r-- | board/morphius/gpio.inc | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/board/morphius/board.c b/board/morphius/board.c index 1e58fe6672..a4c0380ef6 100644 --- a/board/morphius/board.c +++ b/board/morphius/board.c @@ -492,6 +492,9 @@ static void board_chipset_startup(void) { /* Normal charge current */ sb_smart_charge_mode(SB_SMART_CHARGE_DISABLE); + + /* hdmi retimer power on */ + ioex_set_level(IOEX_HDMI_POWER_EN_DB, 1); } DECLARE_HOOK(HOOK_CHIPSET_RESUME, board_chipset_startup, HOOK_PRIO_DEFAULT); @@ -500,5 +503,8 @@ static void board_chipset_suspend(void) { /* SMART charge current */ sb_smart_charge_mode(SB_SMART_CHARGE_ENABLE); + + /* hdmi retimer power off */ + ioex_set_level(IOEX_HDMI_POWER_EN_DB, 0); } DECLARE_HOOK(HOOK_CHIPSET_SUSPEND, board_chipset_suspend, HOOK_PRIO_DEFAULT); diff --git a/board/morphius/gpio.inc b/board/morphius/gpio.inc index 366bb198ce..95dd1e2b1b 100644 --- a/board/morphius/gpio.inc +++ b/board/morphius/gpio.inc @@ -73,6 +73,7 @@ IOEX(USB_A0_CHARGE_EN_L, EXPIN(USBC_PORT_C0, 1, 6), GPIO_OUT_HIGH) /* A0 5V High IOEX(USB_A1_RETIMER_EN, EXPIN(USBC_PORT_C1, 0, 0), GPIO_OUT_LOW) /* A1 Retimer Enable */ IOEX(USB_A1_RETIMER_RST_DB, EXPIN(USBC_PORT_C1, 0, 1), GPIO_OUT_LOW) /* A1 Retimer Reset */ IOEX(USB_C1_HPD_IN_DB, EXPIN(USBC_PORT_C1, 0, 2), GPIO_OUT_LOW) /* C1 HPD */ +IOEX(HDMI_POWER_EN_DB, EXPIN(USBC_PORT_C1, 0, 3), GPIO_OUT_LOW) /* HDMI retimer power enable */ IOEX(USB_C1_TCPC_FASTSW_CTL_EN, EXPIN(USBC_PORT_C1, 0, 4), GPIO_OUT_LOW) /* C1 FastSwitch Control */ IOEX(USB_C1_MUX_RST_DB, EXPIN(USBC_PORT_C1, 1, 1), GPIO_OUT_LOW) /* C1 Mux Reset */ IOEX(USB_C1_SBU_FAULT_DB_ODL, EXPIN(USBC_PORT_C1, 1, 2), GPIO_INPUT) /* C1 SBU Fault */ |