Marc Jones (marc.jones@se-eng.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/7946
-gerrit
commit b3749a8c211c2c2328793c1e5bd5cc064ae0d71a Author: David Hendricks dhendrix@chromium.org Date: Tue May 13 20:32:14 2014 -0700
nyan*: Log boot reason in eventlog
BUG=none BRANCH=nyan TEST=built and booted on Big under various modes, verified that expected boot mode showed up using "mosys eventlog list" Signed-off-by: David Hendricks dhendrix@chromium.org
Original-Change-Id: I8d98487a2cb910874c8d741008ae59a6c89102e7 Original-Reviewed-on: https://chromium-review.googlesource.com/199691 Original-Commit-Queue: David Hendricks dhendrix@chromium.org Original-Tested-by: David Hendricks dhendrix@chromium.org Original-Reviewed-by: Julius Werner jwerner@chromium.org (cherry picked from commit 9f4b2574c1af23dcdc01706e9a118441f46a0f97) Signed-off-by: Marc Jones marc.jones@se-eng.com
Change-Id: Ibbf264a1e05323dfddb7cdb270ee6f2d49e83eff --- src/mainboard/google/nyan/mainboard.c | 2 ++ src/mainboard/google/nyan_big/mainboard.c | 2 ++ src/mainboard/google/nyan_blaze/mainboard.c | 2 ++ 3 files changed, 6 insertions(+)
diff --git a/src/mainboard/google/nyan/mainboard.c b/src/mainboard/google/nyan/mainboard.c index a25b5fd..a54f95d 100644 --- a/src/mainboard/google/nyan/mainboard.c +++ b/src/mainboard/google/nyan/mainboard.c @@ -30,6 +30,7 @@ #include <soc/nvidia/tegra124/pmc.h> #include <soc/nvidia/tegra124/spi.h> #include <soc/nvidia/tegra124/usb.h> +#include <vendorcode/google/chromeos/chromeos.h>
static struct clk_rst_ctlr *clk_rst = (void *)TEGRA_CLK_RST_BASE;
@@ -244,6 +245,7 @@ static void mainboard_init(device_t dev) setup_ec_spi(); #if CONFIG_ELOG elog_init(); + elog_add_boot_reason(); #endif }
diff --git a/src/mainboard/google/nyan_big/mainboard.c b/src/mainboard/google/nyan_big/mainboard.c index 7a55ad4..4a55e1e 100644 --- a/src/mainboard/google/nyan_big/mainboard.c +++ b/src/mainboard/google/nyan_big/mainboard.c @@ -30,6 +30,7 @@ #include <soc/nvidia/tegra124/pmc.h> #include <soc/nvidia/tegra124/spi.h> #include <soc/nvidia/tegra124/usb.h> +#include <vendorcode/google/chromeos/chromeos.h>
static struct clk_rst_ctlr *clk_rst = (void *)TEGRA_CLK_RST_BASE;
@@ -242,6 +243,7 @@ static void mainboard_init(device_t dev) setup_ec_spi(); #if CONFIG_ELOG elog_init(); + elog_add_boot_reason(); #endif }
diff --git a/src/mainboard/google/nyan_blaze/mainboard.c b/src/mainboard/google/nyan_blaze/mainboard.c index 87a17fb..3e6725b 100644 --- a/src/mainboard/google/nyan_blaze/mainboard.c +++ b/src/mainboard/google/nyan_blaze/mainboard.c @@ -30,6 +30,7 @@ #include <soc/nvidia/tegra124/pmc.h> #include <soc/nvidia/tegra124/spi.h> #include <soc/nvidia/tegra124/usb.h> +#include <vendorcode/google/chromeos/chromeos.h>
static struct clk_rst_ctlr *clk_rst = (void *)TEGRA_CLK_RST_BASE;
@@ -242,6 +243,7 @@ static void mainboard_init(device_t dev) setup_ec_spi(); #if CONFIG_ELOG elog_init(); + elog_add_boot_reason(); #endif }