From cb91e1525eb0b81f9bc2e24e3404d6a9efc1cce3 Mon Sep 17 00:00:00 2001 From: Stefan Reinauer Date: Tue, 3 Apr 2012 23:28:22 +0200 Subject: Add support for mainboard specific suspend/resume handler Some mainboards (most likely laptops) will need mainboard specific functions called upon a resume from suspend. Change-Id: If1518a4b016bba776643adaef0ae64ff49f57e51 Signed-off-by: Stefan Reinauer Reviewed-on: http://review.coreboot.org/852 Tested-by: build bot (Jenkins) Reviewed-by: Ronald G. Minnich --- src/arch/x86/boot/acpi.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/arch/x86/boot') diff --git a/src/arch/x86/boot/acpi.c b/src/arch/x86/boot/acpi.c index f81127a02f..f17e73e3f6 100644 --- a/src/arch/x86/boot/acpi.c +++ b/src/arch/x86/boot/acpi.c @@ -474,8 +474,12 @@ void suspend_resume(void) /* If we happen to be resuming find wakeup vector and jump to OS. */ wake_vec = acpi_find_wakeup_vector(); - if (wake_vec) + if (wake_vec) { + /* Call mainboard resume handler first, if defined. */ + if (mainboard_suspend_resume) + mainboard_suspend_resume(); acpi_jump_to_wakeup(wake_vec); + } } /* This is to be filled by SB code - startup value what was found. */ -- cgit v1.2.3