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 
7 {
8  /* One DIMM slot */
10  pei_data->spd_addresses[0] = 0xa0;
11 }
12 
14 {
15  pei_data->ec_present = 1;
16 
17  /* P1: Left Side Port (USB2 only) */
19  /* P2: Right Side Port (USB2) */
21  /* P3: Empty */
23  /* P4: Camera */
25  /* P5: Bluetooth */
27  /* P6: Empty */
29  /* P7: Empty */
31  /* P8: SD Card */
33 
34  /* P1: Empty */
36  /* P2: Right Side Port (USB3) */
38  /* P3: Empty */
40  /* P4: Empty */
42 }
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
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
void mainboard_fill_pei_data(struct pei_data *pei_data)
Definition: pei_data.c:6
void mainboard_fill_spd_data(struct pei_data *pei_data)
Definition: pei_data.c:6
#define USB_OC_PIN_SKIP
Definition: pei_data.h:27
@ USB_PORT_BACK_PANEL
Definition: pei_data.h:30
@ USB_PORT_SKIP
Definition: pei_data.h:36
uint8_t spd_addresses[4]
Definition: pei_data.h:60
int dimm_channel1_disabled
Definition: pei_data.h:69
int ec_present
Definition: pei_data.h:62