summaryrefslogtreecommitdiff
path: root/include/config.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/config.h')
-rw-r--r--include/config.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/config.h b/include/config.h
index 46705f89e3..50f84314ed 100644
--- a/include/config.h
+++ b/include/config.h
@@ -783,6 +783,7 @@
#undef CONFIG_CMD_PMU
#define CONFIG_CMD_POWERINDEBUG
#undef CONFIG_CMD_POWERLED
+#define CONFIG_CMD_PWR_AVG
#define CONFIG_CMD_POWER_AP
#undef CONFIG_CMD_PPC_DUMP
#define CONFIG_CMD_REGULATOR
@@ -3281,6 +3282,13 @@
#undef CONFIG_HOSTCMD_PD
#endif
+/*
+ * Power Average task only works when there's a battery to talk to.
+ */
+#ifndef CONFIG_BATTERY
+#undef CONFIG_CMD_PWR_AVG
+#endif
+
/*****************************************************************************/
/*
* Apply test config overrides last, since tests need to override some of the