reset: Finalize move to new API
Move soft_reset() to `southbridge/amd/common/` it's only used for amdfam10 now. Drop hard_reset() for good. Change-Id: Ifdc5791160653c5578007f6c1b96015efe2b3e1e Signed-off-by: Nico Huber <nico.h@gmx.de> Reviewed-on: https://review.coreboot.org/29059 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Aaron Durbin <adurbin@chromium.org>
This commit is contained in:
@ -31,39 +31,4 @@ void do_board_reset(void)
|
||||
{
|
||||
printk(BIOS_CRIT, "No board_reset implementation, hanging...\n");
|
||||
}
|
||||
#else
|
||||
/*
|
||||
* Fall back to hard_reset() for a regression free transition.
|
||||
* FIXME: Remove after everything is converted to board_reset().
|
||||
*/
|
||||
__weak void do_board_reset(void)
|
||||
{
|
||||
hard_reset();
|
||||
}
|
||||
#endif
|
||||
|
||||
__noreturn static void __hard_reset(void) {
|
||||
if (IS_ENABLED(CONFIG_HAVE_HARD_RESET))
|
||||
do_hard_reset();
|
||||
else
|
||||
printk(BIOS_CRIT, "No hard_reset implementation, hanging...\n");
|
||||
halt();
|
||||
}
|
||||
|
||||
/* Not all platforms implement all reset types. Fall back to hard_reset. */
|
||||
__weak void do_soft_reset(void) { __hard_reset(); }
|
||||
|
||||
void hard_reset(void)
|
||||
{
|
||||
printk(BIOS_INFO, "%s() called!\n", __func__);
|
||||
dcache_clean_all();
|
||||
__hard_reset();
|
||||
}
|
||||
|
||||
void soft_reset(void)
|
||||
{
|
||||
printk(BIOS_INFO, "%s() called!\n", __func__);
|
||||
dcache_clean_all();
|
||||
do_soft_reset();
|
||||
halt();
|
||||
}
|
||||
|
Reference in New Issue
Block a user