[coreboot-gerrit] Patch set updated for coreboot: b8f5e7f nyan*: Add eventlog support
Marc Jones (marc.jones@se-eng.com)
gerrit at coreboot.org
Wed Dec 17 04:44:44 CET 2014
Marc Jones (marc.jones at se-eng.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/7774
-gerrit
commit b8f5e7f33180bf0657c58d4f565c2e9f3acdbc1c
Author: David Hendricks <dhendrix at chromium.org>
Date: Thu Mar 20 18:43:45 2014 -0700
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 at chromium.org>
Original-Change-Id: Id77a78f55c8bff9ef0ffc7109c8b03c270e8b6b1
Original-Reviewed-on: https://chromium-review.googlesource.com/191200
Original-Reviewed-by: Gabe Black <gabeblack at chromium.org>
Original-Tested-by: David Hendricks <dhendrix at chromium.org>
Original-Commit-Queue: David Hendricks <dhendrix at chromium.org>
(cherry picked from commit 1bb1a00863a63e53379b02f2b466d4d8ae3cef50)
Signed-off-by: Marc Jones <marc.jones at se-eng.com>
Change-Id: I3a5d896d97dfc66ec37114bd3bac3f34e1c22bf7
---
src/mainboard/google/nyan/mainboard.c | 4 ++++
src/mainboard/google/nyan_big/Kconfig | 1 -
src/mainboard/google/nyan_big/mainboard.c | 4 ++++
src/mainboard/google/nyan_blaze/Kconfig | 1 -
src/mainboard/google/nyan_blaze/mainboard.c | 4 ++++
5 files changed, 12 insertions(+), 2 deletions(-)
diff --git a/src/mainboard/google/nyan/mainboard.c b/src/mainboard/google/nyan/mainboard.c
index ec06a7a..2aff9d6 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 16ad98d..bee9748 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 242f995..f2199d6 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 353abe0..1013455 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 b2787ec..7ca7b53 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)
More information about the coreboot-gerrit
mailing list