summaryrefslogtreecommitdiff
path: root/src/mainboard
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2016-06-19 16:09:21 -0600
committerMartin Roth <martinroth@google.com>2016-06-24 20:52:41 +0200
commitbc679bc23c071657aff122dab95db05219aa40f2 (patch)
tree831f6bb5de62217de4130343e603f72d625a648c /src/mainboard
parentfe0dd6fc93e9e89e2a3324354dafdfb9cdb31b6c (diff)
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: I4971d661b267ae8b7e3befeff482ca703b741743 Signed-off-by: Martin Roth <martinroth@chromium.org> Original-Commit-Id: e4e9823d8cecbf9873e78b048e389c7a737ff512 Original-Change-Id: I0fcf55b3feccf9a0ad915deb6d323b65bf2e9811 Original-Signed-off-by: Simon Glass <sjg@chromium.org> Original-Reviewed-on: https://chromium-review.googlesource.com/353822 Original-Commit-Ready: Vadim Bendebury <vbendeb@chromium.org> Original-Tested-by: Vadim Bendebury <vbendeb@chromium.org> Original-Reviewed-by: Vadim Bendebury <vbendeb@chromium.org> Reviewed-on: https://review.coreboot.org/15306 Tested-by: build bot (Jenkins) Reviewed-by: Furquan Shaikh <furquan@google.com>
Diffstat (limited to 'src/mainboard')
-rw-r--r--src/mainboard/google/gru/mainboard.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mainboard/google/gru/mainboard.c b/src/mainboard/google/gru/mainboard.c
index 55b5486ccc..5a6b82cbb1 100644
--- a/src/mainboard/google/gru/mainboard.c
+++ b/src/mainboard/google/gru/mainboard.c
@@ -19,6 +19,7 @@
#include <device/device.h>
#include <device/i2c.h>
#include <ec/google/chromeec/ec.h>
+#include <elog.h>
#include <gpio.h>
#include <rtc.h>
#include <soc/bl31_plat_params.h>
@@ -28,6 +29,7 @@
#include <soc/grf.h>
#include <soc/i2c.h>
#include <soc/usb.h>
+#include <vendorcode/google/chromeos/chromeos.h>
#include "board.h"
@@ -187,6 +189,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)