summaryrefslogtreecommitdiff
path: root/src/mainboard
diff options
context:
space:
mode:
authorFurquan Shaikh <furquan@google.com>2014-11-12 16:24:57 -0800
committerPatrick Georgi <pgeorgi@google.com>2015-04-10 12:02:15 +0200
commit73ef61072b555570f35af47bc040352a6c9b6e04 (patch)
tree50eac371d9fa6b88407524812e24b7d75cc1c692 /src/mainboard
parent8a1ee9bf70d1777636b297158882a5f465af66b7 (diff)
google/rush_ryu: Add support for event log
BUG=chrome-os-partner:33764 BRANCH=None TEST=Event logs verified on ryu across multiple boots. Change-Id: Iff4a60b3904ef0fcdd2513df579db8f5877808de Signed-off-by: Patrick Georgi <pgeorgi@chromium.org> Original-Commit-Id: fbe6290de7eaed0d66a26cc2389181a8d38a59d6 Original-Change-Id: I50d052bb15ec6616b0bf82bf1f1acf9080f4c54b Original-Signed-off-by: Furquan Shaikh <furquan@google.com> Original-Reviewed-on: https://chromium-review.googlesource.com/229415 Original-Reviewed-by: Aaron Durbin <adurbin@chromium.org> Original-Tested-by: Furquan Shaikh <furquan@chromium.org> Original-Commit-Queue: Furquan Shaikh <furquan@chromium.org> Reviewed-on: http://review.coreboot.org/9426 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Diffstat (limited to 'src/mainboard')
-rw-r--r--src/mainboard/google/rush_ryu/mainboard.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mainboard/google/rush_ryu/mainboard.c b/src/mainboard/google/rush_ryu/mainboard.c
index 0f9822989f..1a78e02478 100644
--- a/src/mainboard/google/rush_ryu/mainboard.c
+++ b/src/mainboard/google/rush_ryu/mainboard.c
@@ -20,6 +20,7 @@
#include <arch/mmu.h>
#include <boot/coreboot_tables.h>
#include <device/device.h>
+#include <elog.h>
#include <memrange.h>
#include <soc/addressmap.h>
#include <soc/clk_rst.h>
@@ -27,6 +28,7 @@
#include <soc/funitcfg.h>
#include <soc/nvidia/tegra/i2c.h>
#include <soc/padconfig.h>
+#include <vendorcode/google/chromeos/chromeos.h>
static const struct pad_config mmcpads[] = {
/* MMC4 (eMMC) */
@@ -72,6 +74,8 @@ static void mainboard_init(device_t dev)
/* I2C6 bus (audio, etc.) */
soc_configure_i2c6pad();
i2c_init(I2C6_BUS);
+ elog_init();
+ elog_add_boot_reason();
}
static void mainboard_enable(device_t dev)