From 35c0f439fc2bc29817d643a7629a4d2b79d6b903 Mon Sep 17 00:00:00 2001 From: Vladimir Serbinenko Date: Tue, 2 Sep 2014 22:25:36 +0200 Subject: Move nehalem/sandy/ivy to per-device acpi Change-Id: I3d664ab575bf9c49a7bff9a395fbab96748430d0 Signed-off-by: Vladimir Serbinenko Reviewed-on: http://review.coreboot.org/6802 Reviewed-by: Aaron Durbin Tested-by: build bot (Jenkins) --- src/mainboard/lenovo/x201/mainboard.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/mainboard/lenovo/x201/mainboard.c') diff --git a/src/mainboard/lenovo/x201/mainboard.c b/src/mainboard/lenovo/x201/mainboard.c index fdeddd4402..fb8c1d5626 100644 --- a/src/mainboard/lenovo/x201/mainboard.c +++ b/src/mainboard/lenovo/x201/mainboard.c @@ -48,6 +48,7 @@ #include #include #include +#include "drivers/lenovo/lenovo.h" static acpi_cstate_t cst_entries[] = { {1, 1, 1000, {0x7f, 1, 2, {0}, 1, 0}}, @@ -119,12 +120,20 @@ static void mainboard_init(device_t dev) 0x42, 0x142); } +static unsigned long fill_ssdt(unsigned long current, + const char *oem_table_id) +{ + drivers_lenovo_serial_ports_ssdt_generate("\\_SB.PCI0.LPCB", 0); + return (unsigned long) (acpigen_get_current()); +} + static void mainboard_enable(device_t dev) { device_t dev0; u16 pmbase; dev->ops->init = mainboard_init; + dev->ops->acpi_fill_ssdt_generator = fill_ssdt; pmbase = pci_read_config32(dev_find_slot(0, PCI_DEVFN(0x1f, 0)), PMBASE) & 0xff80; -- cgit v1.2.3