lynxpoint: Finalize chipset before playload if not CONFIG_CHROMEOS

The Chrome OS environment sends an SMI to finalize the chipset/board
at the end of the "depthcharge" payload, but there is no facility to
send this command if not using the full ChromeOS firmware stack.

This commit adds a callback before booting the payload that will
issue this SMI which will lock down the chipset and route USB devices
to the XHCI controller.

Change-Id: I2db9c44d61ebf8fa28a8a2b260a63d4aa4d75842
Signed-off-by: Duncan Laurie <dlaurie@chromium.org>
Reviewed-on: http://review.coreboot.org/5181
Tested-by: build bot (Jenkins)
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
This commit is contained in:
Duncan Laurie 2014-02-10 11:34:27 -08:00 committed by Aaron Durbin
parent 970ad70763
commit 0d0b3c5467
1 changed files with 18 additions and 1 deletions

View File

@ -19,7 +19,7 @@
* MA 02110-1301 USA
*/
#include <bootstate.h>
#include <device/device.h>
#include <device/pci.h>
#include <console/console.h>
@ -124,3 +124,20 @@ void smm_setup_structures(void *gnvs, void *tcg, void *smi1)
"d" (APM_CNT)
);
}
/*
* Finalize system before payload boot if not in ChromeOS environment.
*/
#if !CONFIG_CHROMEOS
static void finalize_boot(void *unused)
{
outb(0xcb, 0xb2);
}
BOOT_STATE_INIT_ENTRIES(finalize) = {
BOOT_STATE_INIT_ENTRY(BS_PAYLOAD_BOOT, BS_ON_ENTRY,
finalize_boot, NULL),
};
#endif