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  pei_data->ec_present = 0;
9 
10  /* P0: VP8 */
12  /* P1: Port 3, USB3 */
14  /* P2: Port 4, USB4 */
16  /* P3: Mini Card */
18  /* P4: Port 1, USB1 */
20  /* P5: Port 2, USB2 */
22  /* P6: Card Reader */
24  /* P7: Pin Header */
26 
27  /* P1: USB1 */
28  pei_data_usb3_port(pei_data, 0, 1, 2, 0);
29  /* P2: USB2 */
30  pei_data_usb3_port(pei_data, 1, 1, 2, 0);
31  /* P3: USB3 */
32  pei_data_usb3_port(pei_data, 2, 1, 0, 0);
33  /* P4: USB4 */
34  pei_data_usb3_port(pei_data, 3, 1, 1, 0);
35 }
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
#define USB_OC_PIN_SKIP
Definition: pei_data.h:27
@ USB_PORT_MINI_PCIE
Definition: pei_data.h:33
@ USB_PORT_INTERNAL
Definition: pei_data.h:35
int ec_present
Definition: pei_data.h:62