coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
lpc.c
Go to the documentation of this file.
1
/* SPDX-License-Identifier: GPL-2.0-or-later */
2
3
#include <
device/pci.h
>
4
#include <
intelblocks/lpc_lib.h
>
5
#include <
intelblocks/rtc.h
>
6
#include <soc/pcr_ids.h>
7
#include <soc/pm.h>
8
#include "
chip.h
"
9
10
void
lpc_soc_init
(
struct
device
*dev)
11
{
12
const
struct
soc_intel_apollolake_config
*cfg;
13
cfg =
config_of
(dev);
14
15
/* Set LPC Serial IRQ mode */
16
lpc_set_serirq_mode
(cfg->
serirq_mode
);
17
18
/* Initialize RTC */
19
rtc_init
();
20
}
config_of
static DEVTREE_CONST void * config_of(const struct device *dev)
Definition:
device.h:382
lpc_lib.h
lpc_set_serirq_mode
void lpc_set_serirq_mode(enum serirq_mode mode)
Definition:
lpc_lib.c:226
pci.h
lpc_soc_init
void lpc_soc_init(struct device *dev)
Definition:
lpc.c:10
rtc.h
rtc_init
void rtc_init(void)
Definition:
rtc.c:29
device
Definition:
device.h:107
soc_intel_apollolake_config
Definition:
chip.h:28
soc_intel_apollolake_config::serirq_mode
enum serirq_mode serirq_mode
Definition:
chip.h:103
chip.h
src
soc
intel
apollolake
lpc.c
Generated by
1.9.1