diff options
Diffstat (limited to 'src/lib/reset.c')
-rw-r--r-- | src/lib/reset.c | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/src/lib/reset.c b/src/lib/reset.c index 4b19e1e7e6..904776e91b 100644 --- a/src/lib/reset.c +++ b/src/lib/reset.c @@ -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(); -} |