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> Change-Id: I8d98487a2cb910874c8d741008ae59a6c89102e7 Reviewed-on: https://chromium-review.googlesource.com/199691 Commit-Queue: David Hendricks <dhendrix@chromium.org> Tested-by: David Hendricks <dhendrix@chromium.org> Reviewed-by: Julius Werner <jwerner@chromium.org>
This commit is contained in:
parent
3f36348dd7
commit
9f4b2574c1
3 changed files with 6 additions and 0 deletions
|
|
@ -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;
|
||||
|
||||
|
|
@ -245,6 +246,7 @@ static void mainboard_init(device_t dev)
|
|||
clock_init_arm_generic_timer();
|
||||
setup_ec_spi();
|
||||
elog_init();
|
||||
elog_add_boot_reason();
|
||||
}
|
||||
|
||||
static void mainboard_enable(device_t dev)
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
|
|
@ -243,6 +244,7 @@ static void mainboard_init(device_t dev)
|
|||
clock_init_arm_generic_timer();
|
||||
setup_ec_spi();
|
||||
elog_init();
|
||||
elog_add_boot_reason();
|
||||
}
|
||||
|
||||
static void mainboard_enable(device_t dev)
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
|
|
@ -243,6 +244,7 @@ static void mainboard_init(device_t dev)
|
|||
clock_init_arm_generic_timer();
|
||||
setup_ec_spi();
|
||||
elog_init();
|
||||
elog_add_boot_reason();
|
||||
}
|
||||
|
||||
static void mainboard_enable(device_t dev)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue