mb/google/brya: Create rull variant
[coreboot2.git] / src / mainboard / lenovo / x201 / mainboard.c
blob951058b98668208d722052954158e7ba6838ace1
1 /* SPDX-License-Identifier: GPL-2.0-only */
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>
9 static void fill_ssdt(const struct device *device)
11 drivers_lenovo_serial_ports_ssdt_generate("\\_SB.PCI0.LPCB", 0);
14 static void mainboard_enable(struct device *dev)
16 dev->ops->acpi_fill_ssdt = fill_ssdt;
18 /* If we're resuming from suspend, blink suspend LED */
19 if (acpi_is_wakeup_s3())
20 ec_write(0x0c, 0xc7);
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);
27 struct chip_operations mainboard_ops = {
28 .enable_dev = mainboard_enable,