summaryrefslogtreecommitdiff
path: root/chip/ish/power_mgt.h
diff options
context:
space:
mode:
Diffstat (limited to 'chip/ish/power_mgt.h')
-rw-r--r--chip/ish/power_mgt.h14
1 files changed, 9 insertions, 5 deletions
diff --git a/chip/ish/power_mgt.h b/chip/ish/power_mgt.h
index d592928744..bd2e707cb4 100644
--- a/chip/ish/power_mgt.h
+++ b/chip/ish/power_mgt.h
@@ -6,6 +6,8 @@
#ifndef __CROS_EC_POWER_MGT_H
#define __CROS_EC_POWER_MGT_H
+#include "registers.h"
+
/* power states for ISH */
enum {
/* D0 state: active mode */
@@ -57,12 +59,14 @@ static inline void ish_mia_reset(void)
__builtin_unreachable();
}
-
-/**
- * ish low power management initialization,
- * should be called at system init stage before RTOS task scheduling start
- */
+/* Initialize power management module. */
+#ifdef CONFIG_LOW_POWER_IDLE
void ish_pm_init(void);
+#else
+__maybe_unused static void ish_pm_init(void)
+{
+}
+#endif
/**
* reset ISH (reset minute-ia cpu core, and power off main SRAM)