summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorNico Huber <nico.h@gmx.de>2018-10-11 22:54:25 +0200
committerNico Huber <nico.h@gmx.de>2018-10-31 15:29:42 +0000
commit718c6faff4acf7a7716a1747fbfecdac462ef2c9 (patch)
tree7519bc51b016761d4c068a9e71ab908d5e32a011 /src/lib
parent30cf14ff3fdd9fbbaa3ffb841359c2ee1a0bfcad (diff)
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>
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/reset.c35
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();
-}