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:
parent
ec207630a5
commit
cb91e1525e
|
@ -474,9 +474,13 @@ 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. */
|
||||
u8 acpi_slp_type = 0;
|
||||
|
|
|
@ -417,6 +417,7 @@ void acpi_write_rsdp(acpi_rsdp_t *rsdp, acpi_rsdt_t *rsdt, acpi_xsdt_t *xsdt);
|
|||
extern u8 acpi_slp_type;
|
||||
|
||||
void suspend_resume(void);
|
||||
void __attribute__((weak)) mainboard_suspend_resume(void);
|
||||
void *acpi_find_wakeup_vector(void);
|
||||
void *acpi_get_wakeup_rsdp(void);
|
||||
void acpi_jump_to_wakeup(void *wakeup_addr);
|
||||
|
|
Loading…
Reference in New Issue