baytrail: invoke SMM finalization on handoff
Instead of relying on the bootloader or each mainboard to invoke SMM finalization have the chipset control when it is done. BUG=chrome-os-partner:24624 BRANCH=baytrail TEST=Booted and resumed with SMI debug. Noted SMI. Change-Id: Ifee071fe5704296b896188b26740094344ad756f Signed-off-by: Aaron Durbin <adurbin@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/185201 Reviewed-by: Duncan Laurie <dlaurie@chromium.org>
This commit is contained in:
parent
82cce4d2b4
commit
1b50affb1f
1 changed files with 4 additions and 0 deletions
|
|
@ -23,6 +23,7 @@
|
|||
#include <bootstate.h>
|
||||
#include <cbmem.h>
|
||||
#include <console/console.h>
|
||||
#include <cpu/x86/smm.h>
|
||||
#include <device/device.h>
|
||||
#include <device/pci.h>
|
||||
#include <device/pci_ids.h>
|
||||
|
|
@ -440,6 +441,9 @@ static void finalize_chipset(void *unused)
|
|||
|
||||
/* Set the CF9 lock. */
|
||||
write32(etr, read32(etr) | CF9LOCK);
|
||||
|
||||
printk(BIOS_DEBUG, "Finalizing SMM.\n");
|
||||
outb(APM_CNT_FINALIZE, APM_CNT);
|
||||
}
|
||||
|
||||
BOOT_STATE_INIT_ENTRIES(finalize_bscb) = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue