summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Lee <mike5@huaqin.corp-partner.google.com>2022-03-09 20:59:57 +0800
committerCommit Bot <commit-bot@chromium.org>2022-03-16 08:56:57 +0000
commit74c77c7a67b3f3ebdbc0b68e7a6a6fe4b8c238b1 (patch)
treeceb1250154001d7782143dc7dbea4373b9142a55
parent4b7897827874770a9eb2bda9a5922a8eef902717 (diff)
downloadchrome-ec-74c77c7a67b3f3ebdbc0b68e7a6a6fe4b8c238b1.tar.gz
kingler: fix hibernate function
move charger hibernate setting to the board_hibernate() BUG=b:223545482 BRANCH=none TEST=test hibernate function work normal Signed-off-by: Mike Lee <mike5@huaqin.corp-partner.google.com> Change-Id: Ia10c63d333d4fe8ab60ba6d0dcc2dc2ea659a151 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3513492 Reviewed-by: Siyu Qin <qinsiyu@huaqin.corp-partner.google.com> Tested-by: Eric Yilun Lin <yllin@google.com> Reviewed-by: Ting Shen <phoenixshen@chromium.org> Commit-Queue: Eric Yilun Lin <yllin@google.com>
-rw-r--r--zephyr/projects/corsola/src/hibernate.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/zephyr/projects/corsola/src/hibernate.c b/zephyr/projects/corsola/src/hibernate.c
index 8eae2e697a..1161f0931f 100644
--- a/zephyr/projects/corsola/src/hibernate.c
+++ b/zephyr/projects/corsola/src/hibernate.c
@@ -9,14 +9,14 @@
#include "system.h"
/* Corsola board specific hibernate implementation */
-__override void board_hibernate_late(void)
+__override void board_hibernate(void)
{
-#if defined(CONFIG_CHARGER_ISL9238C)
+#ifdef CONFIG_CHARGER_ISL9238C
isl9238c_hibernate(CHARGER_SOLO);
#endif
+}
+__override void board_hibernate_late(void)
+{
gpio_pin_set_dt(GPIO_DT_FROM_NODELABEL(gpio_en_ulp), 1);
-
- /* should not reach here */
- __builtin_unreachable();
}