nyan*: cbmem: Move the call to cbmemc_reinit.
The call was after the call to vboot_verify_firmware and so would only be called when falling back to RO, aka recovery mode. This change moves it to before vboot_verify_firmware so we'll always have the cbmem console. BUG=None TEST=Built and booted on nyan and verified that the cbmem console was the same as the serial output. Built for big and blaze. BRANCH=nyan Change-Id: I02d01110659689b08d32777dae384ac3e01b3b9f Signed-off-by: Gabe Black <gabeblack@google.com> Reviewed-on: https://chromium-review.googlesource.com/196158 Reviewed-by: David Hendricks <dhendrix@chromium.org> Commit-Queue: Gabe Black <gabeblack@chromium.org> Tested-by: Gabe Black <gabeblack@chromium.org>
This commit is contained in:
parent
2bbcaa7281
commit
d3e4a778e4
3 changed files with 12 additions and 9 deletions
|
|
@ -213,6 +213,10 @@ static void __attribute__((noinline)) romstage(void)
|
|||
configure_ec_spi_bus();
|
||||
configure_tpm_i2c_bus();
|
||||
|
||||
#if CONFIG_CONSOLE_CBMEM
|
||||
cbmemc_reinit();
|
||||
#endif
|
||||
|
||||
vboot_verify_firmware(romstage_handoff_find_or_add());
|
||||
|
||||
timestamp_add(TS_START_COPYRAM, timestamp_get());
|
||||
|
|
@ -220,9 +224,6 @@ static void __attribute__((noinline)) romstage(void)
|
|||
"fallback/coreboot_ram");
|
||||
timestamp_add(TS_END_COPYRAM, timestamp_get());
|
||||
|
||||
#if CONFIG_CONSOLE_CBMEM
|
||||
cbmemc_reinit();
|
||||
#endif
|
||||
stage_exit(entry);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -213,6 +213,10 @@ static void __attribute__((noinline)) romstage(void)
|
|||
configure_ec_spi_bus();
|
||||
configure_tpm_i2c_bus();
|
||||
|
||||
#if CONFIG_CONSOLE_CBMEM
|
||||
cbmemc_reinit();
|
||||
#endif
|
||||
|
||||
vboot_verify_firmware(romstage_handoff_find_or_add());
|
||||
|
||||
timestamp_add(TS_START_COPYRAM, timestamp_get());
|
||||
|
|
@ -220,9 +224,6 @@ static void __attribute__((noinline)) romstage(void)
|
|||
"fallback/coreboot_ram");
|
||||
timestamp_add(TS_END_COPYRAM, timestamp_get());
|
||||
|
||||
#if CONFIG_CONSOLE_CBMEM
|
||||
cbmemc_reinit();
|
||||
#endif
|
||||
stage_exit(entry);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -213,6 +213,10 @@ static void __attribute__((noinline)) romstage(void)
|
|||
configure_ec_spi_bus();
|
||||
configure_tpm_i2c_bus();
|
||||
|
||||
#if CONFIG_CONSOLE_CBMEM
|
||||
cbmemc_reinit();
|
||||
#endif
|
||||
|
||||
vboot_verify_firmware(romstage_handoff_find_or_add());
|
||||
|
||||
timestamp_add(TS_START_COPYRAM, timestamp_get());
|
||||
|
|
@ -220,9 +224,6 @@ static void __attribute__((noinline)) romstage(void)
|
|||
"fallback/coreboot_ram");
|
||||
timestamp_add(TS_END_COPYRAM, timestamp_get());
|
||||
|
||||
#if CONFIG_CONSOLE_CBMEM
|
||||
cbmemc_reinit();
|
||||
#endif
|
||||
stage_exit(entry);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue