coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
early_init.c
Go to the documentation of this file.
1
/* SPDX-License-Identifier: GPL-2.0-only */
2
3
#include <
bootblock_common.h
>
4
#include <
northbridge/intel/sandybridge/raminit_native.h
>
5
#include <
southbridge/intel/bd82x6x/pch.h
>
6
#include <
superio/smsc/lpc47n217/lpc47n217.h
>
7
#include <
ec/hp/kbc1126/ec.h
>
8
9
#define SERIAL_DEV PNP_DEV(0x4e, LPC47N217_SP1)
10
11
const
struct
southbridge_usb_port
mainboard_usb_ports
[] = {
12
{ 1, 1, 0 },
/* USB0, eSATA */
13
{ 1, 0, 0 },
/* USB charger */
14
{ 0, 1, 1 },
15
{ 1, 1, 1 },
/* camera */
16
{ 1, 0, 2 },
/* USB4 expresscard */
17
{ 1, 0, 2 },
/* bluetooth */
18
{ 0, 0, 3 },
19
{ 1, 0, 3 },
/* smartcard */
20
{ 1, 1, 4 },
/* fingerprint */
21
{ 1, 1, 4 },
/* WWAN */
22
{ 1, 0, 5 },
/* CONN */
23
{ 1, 0, 5 },
/* docking */
24
{ 1, 0, 6 },
/* CONN */
25
{ 1, 0, 6 },
/* docking */
26
};
27
28
void
bootblock_mainboard_early_init
(
void
)
29
{
30
lpc47n217_enable_serial
(
SERIAL_DEV
, CONFIG_TTYS0_BASE);
31
kbc1126_enter_conf
();
32
kbc1126_mailbox_init
();
33
kbc1126_kbc_init
();
34
kbc1126_ec_init
();
35
kbc1126_pm1_init
();
36
kbc1126_exit_conf
();
37
}
38
39
void
mainboard_get_spd
(
spd_raw_data
*spd,
bool
id_only)
40
{
41
read_spd
(&spd[0], 0x50, id_only);
42
read_spd
(&spd[2], 0x52, id_only);
43
}
bootblock_common.h
kbc1126_ec_init
void kbc1126_ec_init(void)
Definition:
early_init.c:47
kbc1126_mailbox_init
void kbc1126_mailbox_init(void)
Definition:
early_init.c:30
kbc1126_kbc_init
void kbc1126_kbc_init(void)
Definition:
early_init.c:38
kbc1126_pm1_init
void kbc1126_pm1_init(void)
Definition:
early_init.c:64
kbc1126_enter_conf
void kbc1126_enter_conf(void)
Definition:
early_init.c:8
kbc1126_exit_conf
void kbc1126_exit_conf(void)
Definition:
early_init.c:19
ec.h
spd_raw_data
u8 spd_raw_data[256]
Definition:
ddr3.h:156
lpc47n217.h
bootblock_mainboard_early_init
void bootblock_mainboard_early_init(void)
Definition:
early_init.c:11
mainboard_get_spd
void mainboard_get_spd(spd_raw_data *spd, bool id_only)
Definition:
early_init.c:25
mainboard_usb_ports
const struct southbridge_usb_port mainboard_usb_ports[]
Definition:
early_init.c:8
SERIAL_DEV
#define SERIAL_DEV
Definition:
early_init.c:9
read_spd
void read_spd(spd_raw_data *spd, u8 addr, bool id_only)
Definition:
raminit.c:138
raminit_native.h
lpc47n217_enable_serial
void lpc47n217_enable_serial(pnp_devfn_t dev, u16 iobase)
Configure the base I/O port of the specified serial device and enable the serial device.
Definition:
early_serial.c:95
pch.h
southbridge_usb_port
Definition:
pch.h:56
src
mainboard
hp
snb_ivb_laptops
variants
8460p
early_init.c
Generated by
1.9.1