summaryrefslogtreecommitdiffstats
path: root/src/southbridge/amd/agesa/hudson/reset.c
diff options
context:
space:
mode:
authorNico Huber <nico.h@gmx.de>2018-10-07 13:25:59 +0200
committerPatrick Georgi <pgeorgi@google.com>2018-10-22 08:38:35 +0000
commitf4181052afd38aa7856762ff22f55ed1cdd835a9 (patch)
tree4a9ca159c88a08567642d2a44e3d8cb4477fdc58 /src/southbridge/amd/agesa/hudson/reset.c
parent3e1b3b1f4f48cfa3b2af28f44c0537ea19d0e8cb (diff)
downloadcoreboot-f4181052afd38aa7856762ff22f55ed1cdd835a9.tar.gz
coreboot-f4181052afd38aa7856762ff22f55ed1cdd835a9.tar.bz2
coreboot-f4181052afd38aa7856762ff22f55ed1cdd835a9.zip
sb/amd/*/hudson: Use CF9 reset
Implement board_reset() as "system reset". Change-Id: I80801ba58b9d849ef5e14185510666bd312106c2 Signed-off-by: Nico Huber <nico.h@gmx.de> Reviewed-on: https://review.coreboot.org/29057 Reviewed-by: Patrick Georgi <pgeorgi@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/southbridge/amd/agesa/hudson/reset.c')
-rw-r--r--src/southbridge/amd/agesa/hudson/reset.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/southbridge/amd/agesa/hudson/reset.c b/src/southbridge/amd/agesa/hudson/reset.c
index 315456dbd6fc..83eaa46bb49d 100644
--- a/src/southbridge/amd/agesa/hudson/reset.c
+++ b/src/southbridge/amd/agesa/hudson/reset.c
@@ -17,6 +17,7 @@
#define __SIMPLE_DEVICE__
#include <arch/io.h>
+#include <cf9_reset.h>
#include <reset.h>
#define HT_INIT_CONTROL 0x6c
@@ -24,7 +25,7 @@
#define HTIC_BIOSR_Detect (1<<5)
#define HTIC_INIT_Detect (1<<6)
-static void set_bios_reset(void)
+void cf9_reset_prepare(void)
{
u32 htic;
htic = pci_io_read_config32(PCI_DEV(0, 0x18, 0), HT_INIT_CONTROL);
@@ -32,11 +33,7 @@ static void set_bios_reset(void)
pci_io_write_config32(PCI_DEV(0, 0x18, 0), HT_INIT_CONTROL, htic);
}
-void do_hard_reset(void)
+void do_board_reset(void)
{
- set_bios_reset();
- /* Try rebooting through port 0xcf9 */
- /* Actually it is not a real hard_reset --- it only reset coherent link table, but not reset link freq and width */
- outb((0 << 3) | (0 << 2) | (1 << 1), 0xcf9);
- outb((0 << 3) | (1 << 2) | (1 << 1), 0xcf9);
+ system_reset();
}