console: Fix regression on LATE_CBMEM_INIT
Fix regression after commit
6032018
console: only allow console messages after initialization
Fix it so that the two remaining platforms that are being
moved to EARLY_CBMEM_INIT have chance to send board-status
with non-dirty tags before and after the conversion is made.
This also leaves us with a record in the repository where
LATE_CBMEM_INIT was known to work on some platform.
Change-Id: Ie874f986a2c474bba117d7d6ae959decec8060a8
Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-on: https://review.coreboot.org/26743
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-by: Furquan Shaikh <furquan@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
parent
2d124ec16d
commit
64b29990dc
|
@ -35,7 +35,8 @@ static int console_loglevel = CONFIG_DEFAULT_CONSOLE_LOGLEVEL;
|
|||
|
||||
static inline int get_log_level(void)
|
||||
{
|
||||
if (car_get_var(console_inited) == 0)
|
||||
if (!IS_ENABLED(CONFIG_LATE_CBMEM_INIT) &&
|
||||
car_get_var(console_inited) == 0)
|
||||
return -1;
|
||||
if (CONSOLE_LEVEL_CONST)
|
||||
return get_console_loglevel();
|
||||
|
@ -78,7 +79,8 @@ asmlinkage void console_init(void)
|
|||
|
||||
console_hw_init();
|
||||
|
||||
car_set_var(console_inited, 1);
|
||||
if (!IS_ENABLED(CONFIG_LATE_CBMEM_INIT))
|
||||
car_set_var(console_inited, 1);
|
||||
|
||||
printk(BIOS_NOTICE, "\n\ncoreboot-%s%s %s " ENV_STRING " starting...\n",
|
||||
coreboot_version, coreboot_extra_version, coreboot_build);
|
||||
|
|
Loading…
Reference in New Issue