summaryrefslogtreecommitdiff
path: root/chip/ish/system.c
diff options
context:
space:
mode:
authorHu, Hebo <hebo.hu@intel.com>2019-03-08 15:34:21 +0800
committerchrome-bot <chrome-bot@chromium.org>2019-04-08 02:51:29 -0700
commit6a184d5019f0b45fe692da09a14e9ce7c853d68c (patch)
tree541192356148342f09bacebb75bea95027e98e7d /chip/ish/system.c
parentd0a350e6691a9d93138051e2aa00e0d6c26151b5 (diff)
downloadchrome-ec-6a184d5019f0b45fe692da09a14e9ce7c853d68c.tar.gz
ish/ish5: implement AON low power management framework
AON PM framework including: 1: AON task skeleton 2: task switching between main FW and AON task 3: 'idlestats' console command for D0ix statistic information 4: D0ix entrance in idle task BUG=b:122364080 BRANCH=none TEST=tested on arcada Change-Id: Iefa9e067892d5c42d9f0c795275fe88e5a36115b Signed-off-by: Hu, Hebo <hebo.hu@intel.com> Reviewed-on: https://chromium-review.googlesource.com/1510518 Commit-Ready: Rushikesh S Kadam <rushikesh.s.kadam@intel.com> Commit-Ready: Hebo Hu <hebo.hu@intel.corp-partner.google.com> Tested-by: Jett Rink <jettrink@chromium.org> Reviewed-by: Jett Rink <jettrink@chromium.org> Reviewed-by: Hebo Hu <hebo.hu@intel.corp-partner.google.com>
Diffstat (limited to 'chip/ish/system.c')
-rw-r--r--chip/ish/system.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/chip/ish/system.c b/chip/ish/system.c
index 6c8550b0b4..fad46aa5cc 100644
--- a/chip/ish/system.c
+++ b/chip/ish/system.c
@@ -19,6 +19,7 @@
#include "timer.h"
#include "util.h"
#include "spi.h"
+#include "power_mgt.h"
/* Indices for hibernate data registers (RAM backed by VBAT) */
enum hibdata_index {
@@ -33,6 +34,9 @@ int system_is_reboot_warm(void)
void system_pre_init(void)
{
+#ifdef CONFIG_LOW_POWER_IDLE
+ ish_pm_init();
+#endif
}
void chip_save_reset_flags(int flags)