coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
mainboard.c
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 
3 #include <device/device.h>
4 #include <ec/acpi/ec.h>
7 #include "dock.h"
10 
11 static void fill_ssdt(const struct device *device)
12 {
13  drivers_lenovo_serial_ports_ssdt_generate("\\_SB.PCI0.LPCB", 0);
14 }
15 
16 static void mainboard_enable(struct device *dev)
17 {
18  dev->ops->acpi_fill_ssdt = fill_ssdt;
19 
20  /* If we're resuming from suspend, blink suspend LED */
21  if (acpi_is_wakeup_s3())
22  ec_write(0x0c, 0xc7);
23 
27 }
28 
31 };
struct chip_operations mainboard_ops
Definition: mainboard.c:19
static int acpi_is_wakeup_s3(void)
Definition: acpi.h:9
void install_intel_vga_int15_handler(int active_lfp_, int pfit_, int display_, int panel_type_)
Definition: int15.c:101
@ GMA_INT15_BOOT_DISPLAY_LFP
Definition: int15.h:10
@ GMA_INT15_ACTIVE_LFP_INT_LVDS
Definition: int15.h:25
@ GMA_INT15_PANEL_FIT_DEFAULT
Definition: int15.h:17
int ec_write(u8 addr, u8 data)
Definition: ec.c:115
void drivers_lenovo_serial_ports_ssdt_generate(const char *scope, int have_dock_serial)
Definition: wacom.c:74
static void fill_ssdt(const struct device *device)
Definition: mainboard.c:11
static void mainboard_enable(struct device *dev)
Definition: mainboard.c:16
void(* enable_dev)(struct device *dev)
Definition: device.h:24
Definition: device.h:107
struct device_operations * ops
Definition: device.h:143