summaryrefslogtreecommitdiff
path: root/baseboard/trogdor
diff options
context:
space:
mode:
authorWai-Hong Tam <waihong@google.com>2020-09-23 12:09:51 -0700
committerCommit Bot <commit-bot@chromium.org>2020-09-23 23:55:09 +0000
commit9ed05c4152a309f1fb54000ba30dfc187b6b6142 (patch)
tree028d02467757c61494fc9dacafcddbbd94804de7 /baseboard/trogdor
parente7eadea4bf1bbef469e661263ecd3a016e5bd1ad (diff)
downloadchrome-ec-9ed05c4152a309f1fb54000ba30dfc187b6b6142.tar.gz
Trogdor: Enable CONFIG_BOARD_RESET_AFTER_POWER_ON to get correct reset flags
Need this config to save the reset flags across double EC reset on the first power-on. 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. This config will allow the second reset to be treated as a power-on. BRANCH=None BUG=b:169188750 TEST=Tested on a Trogdor board that the first power-on has the "power-on" reset flag. > --- UART initialized after reboot --- > [Image: RO, pompom_v2.0.5526+3b3e20008 2020-09-23 12:00:19 ...] > [Reset cause: power-on] Change-Id: I2cccb94d8fac938b4c70984f1a4e4c49b97a8b7b Signed-off-by: Wai-Hong Tam <waihong@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2427102 Reviewed-by: Stephen Boyd <swboyd@chromium.org>
Diffstat (limited to 'baseboard/trogdor')
-rw-r--r--baseboard/trogdor/baseboard.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/baseboard/trogdor/baseboard.h b/baseboard/trogdor/baseboard.h
index 510b1a821b..20b990b258 100644
--- a/baseboard/trogdor/baseboard.h
+++ b/baseboard/trogdor/baseboard.h
@@ -58,6 +58,14 @@
#define CONFIG_LID_SWITCH
#define CONFIG_EXTPOWER_GPIO
+/*
+ * 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. This config will
+ * allow the second reset to be treated as a power-on.
+ */
+#define CONFIG_BOARD_RESET_AFTER_POWER_ON
+
/* Battery */
#define CONFIG_BATTERY_CUT_OFF
#define CONFIG_BATTERY_PRESENT_GPIO GPIO_BATT_PRES_ODL