diff options
author | Aaron Durbin <adurbin@chromium.org> | 2017-01-05 10:07:19 -0600 |
---|---|---|
committer | Aaron Durbin <adurbin@chromium.org> | 2017-01-06 17:30:58 +0100 |
commit | 49342cd6880b3f2a8e20957d976914cd4ee7b43d (patch) | |
tree | acc440a4eace0e6fb206c0a1ea4384dfbf294059 /src/lib/bootblock.c | |
parent | 7ad4dc5e9914e927a827ce48a030d2d04e7ec792 (diff) | |
download | coreboot-49342cd6880b3f2a8e20957d976914cd4ee7b43d.tar.xz |
arch/x86: fix cmos post logging in non romcc bootblock
cmos_post_init() is called in src/arch/x86/bootblock_simple.c, and
that function is reponsible for bootstrapping the cmos post register
contents. Without this function being called none of the cmos post
functionality works correctly. Therefore, add a call to lib/bootblock.c
which the C_ENVIRONMENT_BOOTBLOCK SoCs use.
BUG=chrome-os-partner:61546
Change-Id: I2e3519f2f3f2c28e5cba26b5811f1eb0c2a90572
Signed-off-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-on: https://review.coreboot.org/18043
Tested-by: build bot (Jenkins)
Reviewed-by: Furquan Shaikh <furquan@google.com>
Diffstat (limited to 'src/lib/bootblock.c')
-rw-r--r-- | src/lib/bootblock.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/bootblock.c b/src/lib/bootblock.c index 9dece0c373..a560152332 100644 --- a/src/lib/bootblock.c +++ b/src/lib/bootblock.c @@ -18,6 +18,7 @@ #include <bootblock_common.h> #include <console/console.h> #include <delay.h> +#include <pc80/mc146818rtc.h> #include <program_loading.h> #include <symbols.h> #include <timestamp.h> @@ -35,6 +36,8 @@ void asmlinkage bootblock_main_with_timestamp(uint64_t base_timestamp) if (IS_ENABLED(CONFIG_COLLECT_TIMESTAMPS) && _timestamp_size > 0) timestamp_init(base_timestamp); + cmos_post_init(); + bootblock_soc_early_init(); bootblock_mainboard_early_init(); |