| 1 |
|
| 2 |
|
| 3 |
#include <acpi/acpi.h> |
| 4 |
#include <device/device.h> |
| 5 |
#include <ec/acpi/ec.h> |
| 6 |
#include <drivers/intel/gma/int15.h> |
| 7 |
#include <drivers/lenovo/lenovo.h> |
| 8 |
|
| 9 |
static void fill_ssdt(const struct device *device) |
| 10 |
{ |
| 11 |
drivers_lenovo_serial_ports_ssdt_generate("\\_SB.PCI0.LPCB", 0); |
| 12 |
} |
| 13 |
|
| 14 |
static void mainboard_enable(struct device *dev) |
| 15 |
{ |
| 16 |
dev->ops->acpi_fill_ssdt = fill_ssdt; |
| 17 |
|
| 18 |
|
| 19 |
if (acpi_is_wakeup_s3()) |
| 20 |
ec_write(0x0c, 0xc7); |
| 21 |
|
| 22 |
install_intel_vga_int15_handler(GMA_INT15_ACTIVE_LFP_INT_LVDS, |
| 23 |
GMA_INT15_PANEL_FIT_DEFAULT, |
| 24 |
GMA_INT15_BOOT_DISPLAY_LFP, 2); |
| 25 |
} |
| 26 |
|
| 27 |
struct chip_operations mainboard_ops = { |
| 28 |
.enable_dev = mainboard_enable, |
| 29 |
}; |