diff options
author | Elyes HAOUAS <ehaouas@noos.fr> | 2019-04-21 18:39:34 +0200 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2019-04-23 10:12:24 +0000 |
commit | 420d7e009decb93b4d2499cf6d8f6100163eecac (patch) | |
tree | a4403027bc6dd6a6fad7f81f7782f92127daf53b /src | |
parent | d893a2635fdd02e3fc12021aa4b0200a30d5a0de (diff) |
ich7/i945: Use full_reset()
For full reset, use already defined full_reset() function.
Change-Id: Iec7dcf285f3cb1cdc8f48d348ff8496879625db5
Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/32377
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
Diffstat (limited to 'src')
-rw-r--r-- | src/northbridge/intel/i945/raminit.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/northbridge/intel/i945/raminit.c b/src/northbridge/intel/i945/raminit.c index be3d17a2fd..d41b913ab1 100644 --- a/src/northbridge/intel/i945/raminit.c +++ b/src/northbridge/intel/i945/raminit.c @@ -19,6 +19,7 @@ #include <device/pci_def.h> #include <device/pci_ops.h> #include <arch/io.h> +#include <cf9_reset.h> #include <device/mmio.h> #include <device/device.h> #include <lib.h> @@ -272,9 +273,7 @@ static void sdram_detect_errors(struct sys_info *sysinfo) if (do_reset) { printk(BIOS_DEBUG, "Reset required.\n"); - outb(0x00, 0xcf9); - outb(0x0e, 0xcf9); - halt(); /* Wait for reset! */ + full_reset(); } } @@ -303,9 +302,7 @@ static void sdram_detect_errors(struct sys_info *sysinfo) if (do_reset) { printk(BIOS_DEBUG, "Reset required.\n"); - outb(0x00, 0xcf9); - outb(0x0e, 0xcf9); - halt(); /* Wait for reset! */ + full_reset(); } } |