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 <
northbridge/intel/sandybridge/raminit_native.h
>
4
#include <
southbridge/intel/bd82x6x/pch.h
>
5
#include <
southbridge/intel/common/gpio.h
>
6
7
const
struct
southbridge_usb_port
mainboard_usb_ports
[] = {
8
{ 1, 0, 0 },
/* P0 (left, fan side), OC 0 */
9
{ 1, 0, 1 },
/* P1 (left touchpad side), OC 1 */
10
{ 1, 1, 3 },
/* P2: dock, OC 3 */
11
{ 1, 1, -1 },
/* P3: wwan, no OC */
12
{ 1, 1, -1 },
/* P4: Wacom tablet on X230t, otherwise empty */
13
{ 1, 1, -1 },
/* P5: Expresscard, no OC */
14
{ 0, 0, -1 },
/* P6: Empty */
15
{ 1, 2, -1 },
/* P7: dock, no OC */
16
{ 1, 0, -1 },
17
{ 1, 2, 5 },
/* P9: Right (EHCI debug), OC 5 */
18
{ 1, 1, -1 },
/* P10: fingerprint reader, no OC */
19
{ 1, 1, -1 },
/* P11: bluetooth, no OC. */
20
{ 1, 1, -1 },
/* P12: wlan, no OC */
21
{ 1, 1, -1 },
/* P13: webcam, no OC */
22
};
23
24
void
mainboard_get_spd
(
spd_raw_data
*spd,
bool
id_only)
25
{
26
read_spd
(&spd[0], 0x50, id_only);
27
read_spd
(&spd[2], 0x51, id_only);
28
}
spd_raw_data
u8 spd_raw_data[256]
Definition:
ddr3.h:156
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
read_spd
void read_spd(spd_raw_data *spd, u8 addr, bool id_only)
Definition:
raminit.c:138
raminit_native.h
pch.h
gpio.h
southbridge_usb_port
Definition:
pch.h:56
src
mainboard
lenovo
x230
variants
x230
early_init.c
Generated by
1.9.1