From f6e17c04e9bd8521d734bced097616aa04150a0b Mon Sep 17 00:00:00 2001 From: David Hendricks Date: Thu, 20 Mar 2014 18:43:45 -0700 Subject: 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 Original-Change-Id: Id77a78f55c8bff9ef0ffc7109c8b03c270e8b6b1 Original-Reviewed-on: https://chromium-review.googlesource.com/191200 Original-Reviewed-by: Gabe Black Original-Tested-by: David Hendricks Original-Commit-Queue: David Hendricks (cherry picked from commit 1bb1a00863a63e53379b02f2b466d4d8ae3cef50) Signed-off-by: Marc Jones Change-Id: I3a5d896d97dfc66ec37114bd3bac3f34e1c22bf7 Reviewed-on: http://review.coreboot.org/7774 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi --- 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(-) (limited to 'src/mainboard/google') 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 #include +#include #include #include #include @@ -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 #include +#include #include #include #include @@ -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 #include +#include #include #include #include @@ -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) -- cgit v1.2.3