summaryrefslogtreecommitdiff
path: root/board/puff/board.h
diff options
context:
space:
mode:
authorAndrew McRae <amcrae@google.com>2020-06-20 11:48:59 +1000
committerCommit Bot <commit-bot@chromium.org>2020-06-23 03:17:54 +0000
commit131f7dc96e1c794befabdd8b182c7d5a190b58cc (patch)
treecdab2380508491fe000509b8544f3b41677d87af /board/puff/board.h
parentbaceadc0e81945b1ca0e58ae09d3d4724a991d40 (diff)
downloadchrome-ec-131f7dc96e1c794befabdd8b182c7d5a190b58cc.tar.gz
npcx: Add a new flag to check for initial power-on
The CR50 will reset the EC on some platforms after power-on. Add a reset flag to detect this and treat the second restart as a power-on restart rather than reset. Subsume the CONFIG_GPIO_INIT_POWER_ON_DELAY_MS config to make it clear what the behaviour will be. BUG=b:151329011 TEST=Confirm on dalboz, puff & variants that second reset is treated correctly. BRANCH=none Change-Id: Ib66de920403f08099b87d1eff797270606b44f8f Signed-off-by: Andrew McRae <amcrae@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2255830 Reviewed-by: Peter Marheine <pmarheine@chromium.org> Commit-Queue: Andrew McRae <amcrae@chromium.org> Tested-by: Andrew McRae <amcrae@chromium.org>
Diffstat (limited to 'board/puff/board.h')
-rw-r--r--board/puff/board.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/board/puff/board.h b/board/puff/board.h
index 83cbd5dca6..2d81fd2310 100644
--- a/board/puff/board.h
+++ b/board/puff/board.h
@@ -31,6 +31,7 @@
#define CONFIG_DEDICATED_RECOVERY_BUTTON
#define CONFIG_DEDICATED_RECOVERY_BUTTON_2
#define CONFIG_BUTTONS_RUNTIME_CONFIG
+#define CONFIG_BOARD_RESET_AFTER_POWER_ON
/* TODO: (b/143496253) re-enable CEC */
/* #define CONFIG_CEC */
#define CONFIG_CRC8