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_pei_data
(
struct
pei_data
*
pei_data
)
7
{
8
pei_data
->
ec_present
= 1;
9
10
/* One installed DIMM per channel -- can be changed by SPD init */
11
pei_data
->
dimm_channel0_disabled
= 2;
12
pei_data
->
dimm_channel1_disabled
= 2;
13
14
/* P0: LTE */
15
pei_data_usb2_port
(
pei_data
, 0, 0x0150, 1,
USB_OC_PIN_SKIP
,
USB_PORT_MINI_PCIE
);
16
/* P1: POrt A, CN10 */
17
pei_data_usb2_port
(
pei_data
, 1, 0x0040, 1, 0,
USB_PORT_BACK_PANEL
);
18
/* P2: CCD */
19
pei_data_usb2_port
(
pei_data
, 2, 0x0080, 1,
USB_OC_PIN_SKIP
,
USB_PORT_INTERNAL
);
20
/* P3: BT */
21
pei_data_usb2_port
(
pei_data
, 3, 0x0040, 1,
USB_OC_PIN_SKIP
,
USB_PORT_MINI_PCIE
);
22
/* P4: Port B, CN6 */
23
pei_data_usb2_port
(
pei_data
, 4, 0x0040, 1, 2,
USB_PORT_BACK_PANEL
);
24
/* P5: EMPTY */
25
pei_data_usb2_port
(
pei_data
, 5, 0x0000, 0,
USB_OC_PIN_SKIP
,
USB_PORT_SKIP
);
26
/* P6: SD Card */
27
pei_data_usb2_port
(
pei_data
, 6, 0x0150, 1,
USB_OC_PIN_SKIP
,
USB_PORT_FLEX
);
28
/* P7: EMPTY */
29
pei_data_usb2_port
(
pei_data
, 7, 0x0000, 0,
USB_OC_PIN_SKIP
,
USB_PORT_SKIP
);
30
31
/* P1: Port A, CN6 */
32
pei_data_usb3_port
(
pei_data
, 0, 1, 0, 0);
33
/* P2: EMPTY */
34
pei_data_usb3_port
(
pei_data
, 1, 0,
USB_OC_PIN_SKIP
, 0);
35
/* P3: EMPTY */
36
pei_data_usb3_port
(
pei_data
, 2, 0,
USB_OC_PIN_SKIP
, 0);
37
/* P4: EMPTY */
38
pei_data_usb3_port
(
pei_data
, 3, 0,
USB_OC_PIN_SKIP
, 0);
39
}
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
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
USB_PORT_FLEX
@ USB_PORT_FLEX
Definition:
pei_data.h:34
USB_PORT_MINI_PCIE
@ USB_PORT_MINI_PCIE
Definition:
pei_data.h:33
USB_PORT_INTERNAL
@ USB_PORT_INTERNAL
Definition:
pei_data.h:35
pei_data
Definition:
pei_data.h:42
pei_data::dimm_channel0_disabled
int dimm_channel0_disabled
Definition:
pei_data.h:68
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
google
auron
variants
auron_paine
pei_data.c
Generated by
1.9.1