diff options
Diffstat (limited to 'chip/npcx/system.c')
-rw-r--r-- | chip/npcx/system.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/chip/npcx/system.c b/chip/npcx/system.c index f014acb455..bda6fe6e3a 100644 --- a/chip/npcx/system.c +++ b/chip/npcx/system.c @@ -708,7 +708,7 @@ int system_is_reboot_warm(void) /*****************************************************************************/ /* Console commands */ - +#ifdef CONFIG_CMD_RTC static int command_system_rtc(int argc, char **argv) { uint32_t sec; @@ -767,10 +767,12 @@ DECLARE_CONSOLE_COMMAND(rtc_alarm, command_rtc_alarm_test, "Test alarm", NULL); #endif /* CONFIG_CMD_RTC_ALARM */ +#endif /* CONFIG_CMD_RTC */ /*****************************************************************************/ /* Host commands */ +#ifdef CONFIG_HOSTCMD_RTC static int system_rtc_get_value(struct host_cmd_handler_args *args) { struct ec_response_rtc *r = args->response; @@ -819,6 +821,7 @@ DECLARE_HOST_COMMAND(EC_CMD_RTC_GET_ALARM, system_rtc_get_alarm, EC_VER_MASK(0)); +#endif /* CONFIG_HOSTCMD_RTC */ #ifdef CONFIG_EXTERNAL_STORAGE void system_jump_to_booter(void) { |