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>
This commit is contained in:
parent
d893a2635f
commit
420d7e009d
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue