diff options
author | Andrew McRae <amcrae@google.com> | 2020-06-20 11:48:59 +1000 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-06-23 03:17:54 +0000 |
commit | 131f7dc96e1c794befabdd8b182c7d5a190b58cc (patch) | |
tree | cdab2380508491fe000509b8544f3b41677d87af /baseboard/zork | |
parent | baceadc0e81945b1ca0e58ae09d3d4724a991d40 (diff) | |
download | chrome-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 'baseboard/zork')
-rw-r--r-- | baseboard/zork/baseboard.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/baseboard/zork/baseboard.h b/baseboard/zork/baseboard.h index 3b7b6bbf45..57667760ad 100644 --- a/baseboard/zork/baseboard.h +++ b/baseboard/zork/baseboard.h @@ -99,11 +99,10 @@ /* * On power-on, H1 releases the EC from reset but then quickly asserts and * releases the reset a second time. This means the EC sees 2 resets: - * (1) power-on reset, (2) reset-pin reset. If we add a delay between reset (1) - * and configuring GPIO output levels, then reset (2) will happen before the - * end of the delay so we avoid extra output toggles. + * (1) power-on reset, (2) reset-pin reset. This config will + * allow the second reset to be treated as a power-on. */ -#define CONFIG_GPIO_INIT_POWER_ON_DELAY_MS 100 +#define CONFIG_BOARD_RESET_AFTER_POWER_ON #define CONFIG_IO_EXPANDER #define CONFIG_IO_EXPANDER_NCT38XX |