From e4e9823d8cecbf9873e78b048e389c7a737ff512 Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Sun, 19 Jun 2016 16:09:21 -0600 Subject: [PATCH] gru: Add elog support Add code to start up elog. This uses the EC RTC to obtain the timestamp. BUG=chrome-os-partner:52220 BRANCH=none TEST=boot on gru with CONFIG_ELOG_DEBUG enabled and see elog messages Change-Id: I0fcf55b3feccf9a0ad915deb6d323b65bf2e9811 Signed-off-by: Simon Glass Reviewed-on: https://chromium-review.googlesource.com/353822 Commit-Ready: Vadim Bendebury Tested-by: Vadim Bendebury Reviewed-by: Vadim Bendebury --- src/mainboard/google/gru/mainboard.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/mainboard/google/gru/mainboard.c b/src/mainboard/google/gru/mainboard.c index e398cd96a3..9231e4a8ef 100644 --- a/src/mainboard/google/gru/mainboard.c +++ b/src/mainboard/google/gru/mainboard.c @@ -19,6 +19,7 @@ #include #include #include +#include #include #include #include @@ -28,6 +29,7 @@ #include #include #include +#include #include "board.h" @@ -189,6 +191,9 @@ static void mainboard_init(device_t dev) register_reset_to_bl31(); register_poweroff_to_bl31(); setup_rtc(); + + elog_init(); + elog_add_boot_reason(); } static void enable_backlight_booster(void)