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 <reinauer@google.com>
Reviewed-on: http://review.coreboot.org/852
Tested-by: build bot (Jenkins)
Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
This commit is contained in:
Stefan Reinauer
2012-04-03 23:28:22 +02:00
parent ec207630a5
commit cb91e1525e
2 changed files with 6 additions and 1 deletions

View File

@ -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. */