summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCC Ma <cc.ma@mediatek.com>2015-09-15 17:33:38 +0800
committerPatrick Georgi <pgeorgi@google.com>2016-03-12 09:04:58 +0100
commit72980b15de5507f06e39818f8a9a9dd0c87f4aa5 (patch)
tree9dfcf567f63ed533dab0aa030b953e4b41a9c3c9 /src
parent27eba676e01314ba4475d5cd6b760c1c54a9c956 (diff)
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>
Diffstat (limited to 'src')
-rw-r--r--src/mainboard/google/oak/mainboard.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mainboard/google/oak/mainboard.c b/src/mainboard/google/oak/mainboard.c
index 15454183d4..544041f6a9 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 @@ static void mainboard_init(device_t dev)
configure_backlight();
configure_usb();
configure_bl31();
+
+ elog_init();
+ elog_add_boot_reason();
}
static void mainboard_enable(device_t dev)