diff options
author | Jack Rosenthal <jrosenth@chromium.org> | 2019-02-26 16:25:28 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2019-03-01 01:08:44 -0800 |
commit | 528ff711f6f22c7899d2c29dae3e1ff2d331bef2 (patch) | |
tree | 481f987693cd547b1543f4cc6959587a3e5bf232 /chip/lm4/system.c | |
parent | 0f85d578dfff59cf4b8800ba5b346d6ae8676db4 (diff) | |
download | chrome-ec-528ff711f6f22c7899d2c29dae3e1ff2d331bef2.tar.gz |
ec: cleanup: Add CONFIG_RTC
This allows the chipset task to print RTC information, without requiring
CONFIG_CMD_RTC to be enabled.
BUG=chromium:649851
BRANCH=none
TEST=Built and flashed on grunt (careena), confirmed RTC state printed
when the power state was changed, but without RTC command present
Change-Id: I6b11c4d2822117c57febdacf299a865710ed1edd
Signed-off-by: Jack Rosenthal <jrosenth@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/1490672
Commit-Ready: ChromeOS CL Exonerator Bot <chromiumos-cl-exonerator@appspot.gserviceaccount.com>
Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
Reviewed-by: Raul E Rangel <rrangel@chromium.org>
Reviewed-by: Jett Rink <jettrink@chromium.org>
Diffstat (limited to 'chip/lm4/system.c')
-rw-r--r-- | chip/lm4/system.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chip/lm4/system.c b/chip/lm4/system.c index 625a4076e2..45f6b91809 100644 --- a/chip/lm4/system.c +++ b/chip/lm4/system.c @@ -660,7 +660,6 @@ const char *system_get_chip_revision(void) /*****************************************************************************/ /* Console commands */ -#ifdef CONFIG_CMD_RTC void print_system_rtc(enum console_channel ch) { uint32_t rtc; @@ -671,6 +670,7 @@ void print_system_rtc(enum console_channel ch) rtc, rtcss, rtc, HIB_RTC_SUBSEC_TO_USEC(rtcss)); } +#ifdef CONFIG_CMD_RTC static int command_system_rtc(int argc, char **argv) { if (argc == 3 && !strcasecmp(argv[1], "set")) { |