coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
romstage.c
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 
6 
8 {
17 }
18 
19 void mb_get_spd_map(struct spd_info *spdi)
20 {
21  spdi->addresses[0] = 0x50;
22  spdi->addresses[1] = 0x51;
23  spdi->addresses[2] = 0x52;
24  spdi->addresses[3] = 0x53;
25 }
26 
28  /* Length, Enable, OCn#, Location */
29  { 0x0040, 1, 0, USB_PORT_INTERNAL },
30  { 0x0040, 1, 0, USB_PORT_BACK_PANEL },
31  { 0x0110, 1, 1, USB_PORT_BACK_PANEL },
32  { 0x0110, 1, 1, USB_PORT_BACK_PANEL },
33  { 0x0110, 1, 2, USB_PORT_BACK_PANEL },
34  { 0x0110, 1, 2, USB_PORT_BACK_PANEL },
35  { 0x0000, 0, USB_OC_PIN_SKIP, USB_PORT_SKIP },
36  { 0x0000, 0, USB_OC_PIN_SKIP, USB_PORT_SKIP },
37  { 0x0040, 1, 4, USB_PORT_BACK_PANEL },
38  { 0x0040, 1, 4, USB_PORT_BACK_PANEL },
39  { 0x0000, 0, USB_OC_PIN_SKIP, USB_PORT_SKIP },
40  { 0x0000, 0, USB_OC_PIN_SKIP, USB_PORT_SKIP },
41  { 0x0040, 1, 6, USB_PORT_BACK_PANEL },
42  { 0x0040, 1, 6, USB_PORT_BACK_PANEL },
43 };
44 
46  /* Enable, OCn# */
47  { 1, 1 },
48  { 1, 1 },
49  { 0, USB_OC_PIN_SKIP },
50  { 0, USB_OC_PIN_SKIP },
51  { 1, 3 },
52  { 1, 3 },
53 };
#define PIRQH
Definition: irq.h:101
#define PIRQC
Definition: irq.h:96
#define PIRQA
Definition: irq.h:94
#define PIRQD
Definition: irq.h:97
#define PIRQB
Definition: irq.h:95
#define PIRQF
Definition: irq.h:99
#define PIRQE
Definition: irq.h:98
#define PIRQG
Definition: irq.h:100
const struct usb3_port_config mainboard_usb3_ports[MAX_USB3_PORTS]
Definition: romstage.c:45
void mainboard_config_rcba(void)
Definition: romstage.c:7
void mb_get_spd_map(struct spd_info *spdi)
Definition: romstage.c:19
const struct usb2_port_config mainboard_usb2_ports[MAX_USB2_PORTS]
Definition: romstage.c:27
#define USB_OC_PIN_SKIP
Definition: pei_data.h:27
#define MAX_USB3_PORTS
Definition: pei_data.h:26
@ USB_PORT_BACK_PANEL
Definition: pei_data.h:30
@ USB_PORT_SKIP
Definition: pei_data.h:36
@ USB_PORT_INTERNAL
Definition: pei_data.h:35
#define MAX_USB2_PORTS
Definition: pei_data.h:25
#define D20IR
Definition: rcba.h:96
#define D31IR
Definition: rcba.h:87
#define D26IR
Definition: rcba.h:92
#define D28IR
Definition: rcba.h:90
#define D22IR
Definition: rcba.h:95
#define D25IR
Definition: rcba.h:93
#define DIR_ROUTE(a, b, c, d)
Definition: rcba.h:116
#define D29IR
Definition: rcba.h:89
#define D27IR
Definition: rcba.h:91
#define RCBA16(x)
Definition: rcba.h:13
Definition: spd.h:11
uint8_t addresses[4]
Definition: raminit.h:11