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
>
5
#include <
northbridge/intel/ironlake/ironlake.h
>
6
#include <
southbridge/intel/bd82x6x/pch.h
>
7
#include "
dock.h
"
8
#include <
drivers/intel/gma/int15.h
>
9
#include <
drivers/lenovo/lenovo.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
24
install_intel_vga_int15_handler
(
GMA_INT15_ACTIVE_LFP_INT_LVDS
,
25
GMA_INT15_PANEL_FIT_DEFAULT
,
26
GMA_INT15_BOOT_DISPLAY_LFP
, 2);
27
}
28
29
struct
chip_operations
mainboard_ops
= {
30
.
enable_dev
=
mainboard_enable
,
31
};
mainboard_ops
struct chip_operations mainboard_ops
Definition:
mainboard.c:19
acpi_is_wakeup_s3
static int acpi_is_wakeup_s3(void)
Definition:
acpi.h:9
install_intel_vga_int15_handler
void install_intel_vga_int15_handler(int active_lfp_, int pfit_, int display_, int panel_type_)
Definition:
int15.c:101
int15.h
GMA_INT15_BOOT_DISPLAY_LFP
@ GMA_INT15_BOOT_DISPLAY_LFP
Definition:
int15.h:10
GMA_INT15_ACTIVE_LFP_INT_LVDS
@ GMA_INT15_ACTIVE_LFP_INT_LVDS
Definition:
int15.h:25
GMA_INT15_PANEL_FIT_DEFAULT
@ GMA_INT15_PANEL_FIT_DEFAULT
Definition:
int15.h:17
ec_write
int ec_write(u8 addr, u8 data)
Definition:
ec.c:115
ec.h
device.h
ironlake.h
lenovo.h
drivers_lenovo_serial_ports_ssdt_generate
void drivers_lenovo_serial_ports_ssdt_generate(const char *scope, int have_dock_serial)
Definition:
wacom.c:74
fill_ssdt
static void fill_ssdt(const struct device *device)
Definition:
mainboard.c:11
mainboard_enable
static void mainboard_enable(struct device *dev)
Definition:
mainboard.c:16
pch.h
chip_operations
Definition:
device.h:23
chip_operations::enable_dev
void(* enable_dev)(struct device *dev)
Definition:
device.h:24
device
Definition:
device.h:107
device::ops
struct device_operations * ops
Definition:
device.h:143
dock.h
src
mainboard
lenovo
x201
mainboard.c
Generated by
1.9.1