reset: Provide new single-function reset API
board_reset() replaces the existing common reset API. There is no common distinction between reset types across platforms, hence, common code could never decide which one to call. Currently only hard_reset() is used by common code. We replace these calls and provide a fall-back to the current hard_reset() implemen- tation. The fall-back will be removed along with hard_reset() after the transition of all boards. Change-Id: I274a8cee9cb38226b5a0bdff6a847c74ef0b3128 Signed-off-by: Nico Huber <nico.h@gmx.de> Reviewed-on: https://review.coreboot.org/29047 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Julius Werner <jwerner@chromium.org> Reviewed-by: Aaron Durbin <adurbin@chromium.org>
This commit is contained in:
committed by
Patrick Georgi
parent
076ce2f4d9
commit
4f32b64e4f
@@ -18,7 +18,7 @@ config VBOOT
|
||||
bool "Verify firmware with vboot."
|
||||
default n
|
||||
select VBOOT_MOCK_SECDATA if !TPM1 && !TPM2
|
||||
depends on HAVE_HARD_RESET
|
||||
depends on HAVE_HARD_RESET || !MISSING_BOARD_RESET
|
||||
help
|
||||
Enabling VBOOT will use vboot to verify the components of the firmware
|
||||
(stages, payload, etc).
|
||||
|
@@ -129,6 +129,5 @@ void vboot_reboot(void)
|
||||
if (IS_ENABLED(CONFIG_CONSOLE_CBMEM_DUMP_TO_UART))
|
||||
cbmem_dump_console();
|
||||
vboot_platform_prepare_reboot();
|
||||
hard_reset();
|
||||
die("failed to reboot");
|
||||
board_reset();
|
||||
}
|
||||
|
Reference in New Issue
Block a user