coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
pei_data.c
Go to the documentation of this file.
1
/* SPDX-License-Identifier: GPL-2.0-only */
2
3
#include <
soc/pei_data.h
>
4
#include <soc/pei_wrapper.h>
5
6
void
mainboard_fill_spd_data
(
struct
pei_data
*
pei_data
)
7
{
8
/* One DIMM slot */
9
pei_data
->
dimm_channel1_disabled
= 3;
10
pei_data
->
spd_addresses
[0] = 0xa0;
11
}
12
13
void
mainboard_fill_pei_data
(
struct
pei_data
*
pei_data
)
14
{
15
pei_data
->
ec_present
= 1;
16
17
/* P1: Left Side Port (USB2 only) */
18
pei_data_usb2_port
(
pei_data
, 0, 0x0080, 1,
USB_OC_PIN_SKIP
,
USB_PORT_BACK_PANEL
);
19
/* P2: Right Side Port (USB2) */
20
pei_data_usb2_port
(
pei_data
, 1, 0x0080, 1,
USB_OC_PIN_SKIP
,
USB_PORT_BACK_PANEL
);
21
/* P3: Empty */
22
pei_data_usb2_port
(
pei_data
, 2, 0x0000, 0,
USB_OC_PIN_SKIP
,
USB_PORT_SKIP
);
23
/* P4: Camera */
24
pei_data_usb2_port
(
pei_data
, 3, 0x0080, 1,
USB_OC_PIN_SKIP
,
USB_PORT_BACK_PANEL
);
25
/* P5: Bluetooth */
26
pei_data_usb2_port
(
pei_data
, 4, 0x0080, 1,
USB_OC_PIN_SKIP
,
USB_PORT_BACK_PANEL
);
27
/* P6: Empty */
28
pei_data_usb2_port
(
pei_data
, 5, 0x0080, 0,
USB_OC_PIN_SKIP
,
USB_PORT_SKIP
);
29
/* P7: Empty */
30
pei_data_usb2_port
(
pei_data
, 6, 0x0080, 0,
USB_OC_PIN_SKIP
,
USB_PORT_SKIP
);
31
/* P8: SD Card */
32
pei_data_usb2_port
(
pei_data
, 7, 0x0080, 1,
USB_OC_PIN_SKIP
,
USB_PORT_BACK_PANEL
);
33
34
/* P1: Empty */
35
pei_data_usb3_port
(
pei_data
, 0, 0,
USB_OC_PIN_SKIP
, 0);
36
/* P2: Right Side Port (USB3) */
37
pei_data_usb3_port
(
pei_data
, 1, 1,
USB_OC_PIN_SKIP
, 0);
38
/* P3: Empty */
39
pei_data_usb3_port
(
pei_data
, 2, 0,
USB_OC_PIN_SKIP
, 0);
40
/* P4: Empty */
41
pei_data_usb3_port
(
pei_data
, 3, 0,
USB_OC_PIN_SKIP
, 0);
42
}
pei_data_usb2_port
static void pei_data_usb2_port(struct pei_data *pei_data, int port, uint16_t length, uint8_t enable, uint8_t oc_pin, uint8_t location)
Definition:
pei_wrapper.h:10
pei_data_usb3_port
static void pei_data_usb3_port(struct pei_data *pei_data, int port, uint8_t enable, uint8_t oc_pin, uint8_t fixed_eq)
Definition:
pei_wrapper.h:20
mainboard_fill_pei_data
void mainboard_fill_pei_data(struct pei_data *pei_data)
Definition:
pei_data.c:6
mainboard_fill_spd_data
void mainboard_fill_spd_data(struct pei_data *pei_data)
Definition:
pei_data.c:6
pei_data.h
USB_OC_PIN_SKIP
#define USB_OC_PIN_SKIP
Definition:
pei_data.h:27
USB_PORT_BACK_PANEL
@ USB_PORT_BACK_PANEL
Definition:
pei_data.h:30
USB_PORT_SKIP
@ USB_PORT_SKIP
Definition:
pei_data.h:36
pei_data
Definition:
pei_data.h:42
pei_data::spd_addresses
uint8_t spd_addresses[4]
Definition:
pei_data.h:60
pei_data::dimm_channel1_disabled
int dimm_channel1_disabled
Definition:
pei_data.h:69
pei_data::ec_present
int ec_present
Definition:
pei_data.h:62
src
mainboard
purism
librem_bdw
variants
librem13v1
pei_data.c
Generated by
1.9.1