aboutsummaryrefslogtreecommitdiff
path: root/src/mainboard/packardbell/ms2290/romstage.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainboard/packardbell/ms2290/romstage.c')
-rw-r--r--src/mainboard/packardbell/ms2290/romstage.c18
1 files changed, 6 insertions, 12 deletions
diff --git a/src/mainboard/packardbell/ms2290/romstage.c b/src/mainboard/packardbell/ms2290/romstage.c
index 92ee021caf..42b345ed81 100644
--- a/src/mainboard/packardbell/ms2290/romstage.c
+++ b/src/mainboard/packardbell/ms2290/romstage.c
@@ -26,6 +26,7 @@
#include <cpu/x86/lapic.h>
#include <lib.h>
#include <pc80/mc146818rtc.h>
+#include <romstage_handoff.h>
#include <console/console.h>
#include <cpu/x86/bist.h>
#include <cpu/intel/romstage.h>
@@ -267,18 +268,11 @@ void mainboard_romstage_entry(unsigned long bist)
outl(reg32 & ~(7 << 10), DEFAULT_PMBASE + 0x04);
}
-#if CONFIG_HAVE_ACPI_RESUME
- /* If there is no high memory area, we didn't boot before, so
- * this is not a resume. In that case we just create the cbmem toc.
- */
- if (s3resume) {
- acpi_prepare_for_resume();
- /* Magic for S3 resume */
- pci_write_config32(PCI_DEV(0, 0x00, 0), SKPAD, 0xcafed00d);
- } else {
- pci_write_config32(PCI_DEV(0, 0x00, 0), SKPAD, 0xcafebabe);
+ romstage_handoff_init(s3resume);
+
+ if (s3resume)
+ acpi_prepare_for_resume();
+ else
quick_ram_check();
- }
-#endif
}