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 <soc/gpio.h>
5 #include "ec.h"
6 
7 static void mainboard_init(struct device *dev)
8 {
10 }
11 
12 /*
13  * mainboard_enable is executed as first thing after
14  * enumerate_buses().
15  */
16 static void mainboard_enable(struct device *dev)
17 {
18  dev->ops->init = mainboard_init;
19 }
20 
23 };
struct chip_operations mainboard_ops
Definition: mainboard.c:19
void mainboard_ec_init(void)
Definition: ec.c:8
static void mainboard_init(struct device *dev)
Definition: mainboard.c:7
static void mainboard_enable(struct device *dev)
Definition: mainboard.c:16
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