diff options
-rw-r--r-- | board/samus_pd/board.h | 1 | ||||
-rw-r--r-- | chip/stm32/clock-stm32f0.c | 2 | ||||
-rw-r--r-- | include/config.h | 1 |
3 files changed, 4 insertions, 0 deletions
diff --git a/board/samus_pd/board.h b/board/samus_pd/board.h index 641f78ece1..1fa894eef2 100644 --- a/board/samus_pd/board.h +++ b/board/samus_pd/board.h @@ -23,6 +23,7 @@ #undef CONFIG_CMD_TYPEC /* Minimum ilim = 500 mA */ #define CONFIG_CHARGER_INPUT_CURRENT PWM_0_MA +#undef CONFIG_CMD_IDLE_STATS #define CONFIG_COMMON_GPIO_SHORTNAMES #undef CONFIG_CONSOLE_CMDHELP #undef CONFIG_CONSOLE_HISTORY diff --git a/chip/stm32/clock-stm32f0.c b/chip/stm32/clock-stm32f0.c index e6ed36e898..5fcf8f7dfd 100644 --- a/chip/stm32/clock-stm32f0.c +++ b/chip/stm32/clock-stm32f0.c @@ -515,6 +515,7 @@ DECLARE_CONSOLE_COMMAND(rtc_alarm, command_rtc_alarm_test, #endif /* CONFIG_CMD_RTC_ALARM */ #if defined(CONFIG_LOW_POWER_IDLE) && defined(CONFIG_COMMON_RUNTIME) +#ifdef CONFIG_CMD_IDLE_STATS /** * Print low power idle statistics */ @@ -536,5 +537,6 @@ DECLARE_CONSOLE_COMMAND(idlestats, command_idle_stats, "", "Print last idle stats", NULL); +#endif /* CONFIG_CMD_IDLE_STATS */ #endif diff --git a/include/config.h b/include/config.h index a6d7d6cfb6..1c0e0fb2c5 100644 --- a/include/config.h +++ b/include/config.h @@ -343,6 +343,7 @@ #undef CONFIG_CMD_GSV #define CONFIG_CMD_HASH #undef CONFIG_CMD_HOSTCMD +#define CONFIG_CMD_IDLE_STATS #undef CONFIG_CMD_ILIM #undef CONFIG_CMD_JUMPTAGS #define CONFIG_CMD_PD |