summaryrefslogtreecommitdiff
path: root/src
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
parent127ad41f647a19e621273d8b7abb963a25a38c02 (diff)
downloadcoreboot-f6e17c04e9bd8521d734bced097616aa04150a0b.tar.xz
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')
-rw-r--r--src/mainboard/google/nyan/mainboard.c4
-rw-r--r--src/mainboard/google/nyan_big/Kconfig1
-rw-r--r--src/mainboard/google/nyan_big/mainboard.c4
-rw-r--r--src/mainboard/google/nyan_blaze/Kconfig1
-rw-r--r--src/mainboard/google/nyan_blaze/mainboard.c4
5 files changed, 12 insertions, 2 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)
diff --git a/src/mainboard/google/nyan_big/Kconfig b/src/mainboard/google/nyan_big/Kconfig
index 16ad98dab4..bee974817f 100644
--- a/src/mainboard/google/nyan_big/Kconfig
+++ b/src/mainboard/google/nyan_big/Kconfig
@@ -34,7 +34,6 @@ config BOARD_SPECIFIC_OPTIONS # dummy
select SPI_FLASH_FAST_READ_DUAL_OUTPUT_3B
select VIRTUAL_DEV_SWITCH
-
config MAINBOARD_DIR
string
default google/nyan_big
diff --git a/src/mainboard/google/nyan_big/mainboard.c b/src/mainboard/google/nyan_big/mainboard.c
index 242f995d98..f2199d680e 100644
--- a/src/mainboard/google/nyan_big/mainboard.c
+++ b/src/mainboard/google/nyan_big/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>
@@ -237,6 +238,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)
diff --git a/src/mainboard/google/nyan_blaze/Kconfig b/src/mainboard/google/nyan_blaze/Kconfig
index 353abe0c49..10134553ae 100644
--- a/src/mainboard/google/nyan_blaze/Kconfig
+++ b/src/mainboard/google/nyan_blaze/Kconfig
@@ -35,7 +35,6 @@ config BOARD_SPECIFIC_OPTIONS # dummy
select SPI_FLASH_FAST_READ_DUAL_OUTPUT_3B
select VIRTUAL_DEV_SWITCH
-
config MAINBOARD_DIR
string
default google/nyan_blaze
diff --git a/src/mainboard/google/nyan_blaze/mainboard.c b/src/mainboard/google/nyan_blaze/mainboard.c
index b2787ec4c5..7ca7b5377b 100644
--- a/src/mainboard/google/nyan_blaze/mainboard.c
+++ b/src/mainboard/google/nyan_blaze/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>
@@ -237,6 +238,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)