summaryrefslogtreecommitdiff
path: root/src/mainboard/google/nyan
diff options
context:
space:
mode:
authorDavid Hendricks <dhendrix@chromium.org>2014-03-20 18:43:45 -0700
committerMarc Jones <marc.jones@se-eng.com>2014-12-17 20:48:27 +0100
commitf6e17c04e9bd8521d734bced097616aa04150a0b (patch)
tree07ee9b2fccf508c4f9c211b21a8acbb1e87654b4 /src/mainboard/google/nyan
parent127ad41f647a19e621273d8b7abb963a25a38c02 (diff)
nyan*: Add eventlog support
This enables event logging support for Nyan platforms. Right now this doesn't do a whole lot. We can add events in later CLs. BUG=none BRANCH=none TEST=built and booted for Nyan Rev. 1, eventlog gets initialized if necessary and can be printed by "mosys eventlog list" Signed-off-by: David Hendricks <dhendrix@chromium.org> Original-Change-Id: Id77a78f55c8bff9ef0ffc7109c8b03c270e8b6b1 Original-Reviewed-on: https://chromium-review.googlesource.com/191200 Original-Reviewed-by: Gabe Black <gabeblack@chromium.org> Original-Tested-by: David Hendricks <dhendrix@chromium.org> Original-Commit-Queue: David Hendricks <dhendrix@chromium.org> (cherry picked from commit 1bb1a00863a63e53379b02f2b466d4d8ae3cef50) Signed-off-by: Marc Jones <marc.jones@se-eng.com> Change-Id: I3a5d896d97dfc66ec37114bd3bac3f34e1c22bf7 Reviewed-on: http://review.coreboot.org/7774 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Diffstat (limited to 'src/mainboard/google/nyan')
-rw-r--r--src/mainboard/google/nyan/mainboard.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mainboard/google/nyan/mainboard.c b/src/mainboard/google/nyan/mainboard.c
index ec06a7acfe..2aff9d6cf0 100644
--- a/src/mainboard/google/nyan/mainboard.c
+++ b/src/mainboard/google/nyan/mainboard.c
@@ -19,6 +19,7 @@
#include <arch/io.h>
#include <device/device.h>
+#include <elog.h>
#include <boot/coreboot_tables.h>
#include <soc/addressmap.h>
#include <soc/clock.h>
@@ -239,6 +240,9 @@ static void mainboard_init(device_t dev)
setup_kernel_info();
clock_init_arm_generic_timer();
setup_ec_spi();
+#if CONFIG_ELOG
+ elog_init();
+#endif
}
static void mainboard_enable(device_t dev)