google/oak: add event log
BRANCH=none
BUG=none
TEST=boot to shell on Rev3
Change-Id: Ifca80705e392ce171ef33bf98ef787e3cd5ffd6b
Signed-off-by: Patrick Georgi <pgeorgi@chromium.org>
Original-Commit-Id: 7d511df7f527ae96c2da01804c62fe98a13fed56
Original-Change-Id: I68ab8be50f210fa17bd731b400a087b150566e3b
Original-Signed-off-by: CC Ma <cc.ma@mediatek.com>
Original-Reviewed-on: https://chromium-review.googlesource.com/303207
Original-Commit-Ready: Yidi Lin <yidi.lin@mediatek.com>
Original-Tested-by: Yidi Lin <yidi.lin@mediatek.com>
Original-Reviewed-by: Julius Werner <jwerner@chromium.org>
Reviewed-on: https://review.coreboot.org/13104
Tested-by: build bot (Jenkins)
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
diff --git a/src/mainboard/google/oak/mainboard.c b/src/mainboard/google/oak/mainboard.c
index 1545418..544041f6 100644
--- a/src/mainboard/google/oak/mainboard.c
+++ b/src/mainboard/google/oak/mainboard.c
@@ -20,6 +20,7 @@
#include <delay.h>
#include <device/device.h>
+#include <elog.h>
#include <gpio.h>
#include <soc/bl31_plat_params.h>
#include <soc/mt6391.h>
@@ -27,6 +28,7 @@
#include <soc/pinmux.h>
#include <soc/pll.h>
#include <soc/usb.h>
+#include <vendorcode/google/chromeos/chromeos.h>
static void register_da9212_to_bl31(void)
{
@@ -170,6 +172,9 @@
configure_backlight();
configure_usb();
configure_bl31();
+
+ elog_init();
+ elog_add_boot_reason();
}
static void mainboard_enable(device_t dev)