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>
6 #include <ec/acpi/ec.h>
7 
8 static void mainboard_init(struct device *dev)
9 {
10  RCBA32(0x38c8) = 0x00002005;
11  RCBA32(0x38c4) = 0x00800000;
12 }
13 
14 static void mainboard_enable(struct device *dev)
15 {
16  dev->ops->init = mainboard_init;
17 
19 }
20 
23 };
struct chip_operations mainboard_ops
Definition: mainboard.c:19
static void mainboard_init(struct device *dev)
Definition: mainboard.c:8
static void mainboard_enable(struct device *dev)
Definition: mainboard.c:14
void install_intel_vga_int15_handler(int active_lfp_, int pfit_, int display_, int panel_type_)
Definition: int15.c:101
@ GMA_INT15_BOOT_DISPLAY_DEFAULT
Definition: int15.h:6
@ GMA_INT15_ACTIVE_LFP_EDP
Definition: int15.h:27
@ GMA_INT15_PANEL_FIT_DEFAULT
Definition: int15.h:17
#define RCBA32(x)
Definition: rcba.h:14
void(* enable_dev)(struct device *dev)
Definition: device.h:24
void(* init)(struct device *dev)
Definition: device.h:42
Definition: device.h:107
struct device_operations * ops
Definition: device.h:143