diff options
author | Aseda Aboagye <aaboagye@google.com> | 2016-09-23 10:52:50 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2016-09-23 21:08:56 -0700 |
commit | 0b1745d6f96571bc371143a0006a4ce3d5f4dff4 (patch) | |
tree | a6edbeede7b6195b4dce29ed785275d16921f608 /power | |
parent | 0567596eb109ee95ac6564e73c79b4761219785d (diff) | |
download | chrome-ec-0b1745d6f96571bc371143a0006a4ce3d5f4dff4.tar.gz |
power: rk3399: Print RTC when resetting chipset.
In order to help correlate EC logs with those from the kernel, it was
suggested that the EC could periodically print the RTC time. This
commit prints out the RTC time when a chipset reset is requested.
BUG=chrome-os-partner:57731
BRANCH=gru
TEST=Build and flash kevin. Trigger watchdog from kernel and verify
that RTC time is printed when the chipset is reset.
Change-Id: Idc9a815c3337f720d41d16e0d844b4c1ea6728d8
Signed-off-by: Aseda Aboagye <aaboagye@google.com>
Reviewed-on: https://chromium-review.googlesource.com/388857
Commit-Ready: Aseda Aboagye <aaboagye@chromium.org>
Tested-by: Aseda Aboagye <aaboagye@chromium.org>
Reviewed-by: Shawn N <shawnn@chromium.org>
Diffstat (limited to 'power')
-rw-r--r-- | power/rk3399.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/power/rk3399.c b/power/rk3399.c index 1b7978d22b..6ffdd7bec1 100644 --- a/power/rk3399.c +++ b/power/rk3399.c @@ -60,6 +60,9 @@ void chipset_force_shutdown(void) void chipset_reset(int cold_reset) { + /* Print out the RTC to help correlate resets in logs. */ + print_system_rtc(CC_CHIPSET); + /* TODO: handle cold_reset */ CPRINTS("%s(%d)", __func__, cold_reset); |