summaryrefslogtreecommitdiff
path: root/board/fizz/board.c
diff options
context:
space:
mode:
authorDaisuke Nojiri <dnojiri@chromium.org>2018-01-25 12:47:33 -0800
committerchrome-bot <chrome-bot@chromium.org>2018-02-03 02:38:10 -0800
commit044cc724967fbb424dd4f686a67abce5a67cfdec (patch)
tree4d57676879db285b665f121d77851d43c0c70a74 /board/fizz/board.c
parentcd5173dfe0e80ad2ca622e64aeb9d14b82ef494f (diff)
downloadchrome-ec-044cc724967fbb424dd4f686a67abce5a67cfdec.tar.gz
Enable PD communication in RO for external display
This patch makes EC enable PD communication if it's running in manual recovery mode. This is required to show recovery screen on a type-c monitor. This patch also makes EC-EFS ignore power availability. It will make EC verify & jump to RW even if power is sourced by a barrel jack adapter. This should allow depthcharge to show screens (e.g. broken, warning) on a type-c monitor. BUG=b:72387533 BRANCH=none TEST=On Fizz with type-c monitor, verify - Recovery screen is displayed in manual recovery mode. - Critical update screen is displayed in normal mode. - Warning screen is displayed in developer mode. Monitors tested: Dingdong, Dell S2718D Change-Id: Ib53e02d1e5c0f5b2d96d9a02fd33022f92e52b04 Signed-off-by: Daisuke Nojiri <dnojiri@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/898346 Reviewed-by: Randall Spangler <rspangler@chromium.org>
Diffstat (limited to 'board/fizz/board.c')
-rw-r--r--board/fizz/board.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/board/fizz/board.c b/board/fizz/board.c
index ee0cd4fe2b..2861ee5fbe 100644
--- a/board/fizz/board.c
+++ b/board/fizz/board.c
@@ -236,9 +236,10 @@ void board_tcpc_init(void)
{
int port, reg;
- /* Only reset TCPC in RO boot. */
- if (!system_jumped_to_this_image())
- board_reset_pd_mcu();
+ /* This needs to be executed only once per boot. It could be run by RO
+ * if we boot in recovery mode. It could be run by RW if we boot in
+ * normal or dev mode. Note EFS makes RO jump to RW before HOOK_INIT. */
+ board_reset_pd_mcu();
/*
* Wake up PS8751. If PS8751 remains in low power mode after sysjump,