From d72d8aa9523fae880a3be6b64ae8bcddb88fbcd3 Mon Sep 17 00:00:00 2001 From: David Hendricks Date: Tue, 13 May 2014 20:32:14 -0700 Subject: 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 Original-Change-Id: I8d98487a2cb910874c8d741008ae59a6c89102e7 Original-Reviewed-on: https://chromium-review.googlesource.com/199691 Original-Commit-Queue: David Hendricks Original-Tested-by: David Hendricks Original-Reviewed-by: Julius Werner (cherry picked from commit 9f4b2574c1af23dcdc01706e9a118441f46a0f97) Signed-off-by: Marc Jones Change-Id: Ibbf264a1e05323dfddb7cdb270ee6f2d49e83eff Reviewed-on: http://review.coreboot.org/7946 Reviewed-by: Edward O'Callaghan Tested-by: build bot (Jenkins) --- 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(+) (limited to 'src/mainboard') diff --git a/src/mainboard/google/nyan/mainboard.c b/src/mainboard/google/nyan/mainboard.c index a25b5fd238..a54f95d22f 100644 --- a/src/mainboard/google/nyan/mainboard.c +++ b/src/mainboard/google/nyan/mainboard.c @@ -30,6 +30,7 @@ #include #include #include +#include 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 7a55ad4170..4a55e1e3a2 100644 --- a/src/mainboard/google/nyan_big/mainboard.c +++ b/src/mainboard/google/nyan_big/mainboard.c @@ -30,6 +30,7 @@ #include #include #include +#include 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 87a17fb9ca..3e6725bd4a 100644 --- a/src/mainboard/google/nyan_blaze/mainboard.c +++ b/src/mainboard/google/nyan_blaze/mainboard.c @@ -30,6 +30,7 @@ #include #include #include +#include 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 } -- cgit v1.2.3