1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #include <soc/pei_data.h>
4 #include <soc/pei_wrapper.h>
6 void mb_get_spd_map(struct spd_info
*spdi
)
8 spdi
->addresses
[0] = 0x50;
9 spdi
->addresses
[2] = 0x52;
12 void mainboard_fill_pei_data(struct pei_data
*pei_data
)
14 pei_data
->ec_present
= 1;
17 pei_data_usb2_port(pei_data
, 0, 0x0040, 1, USB_OC_PIN_SKIP
, USB_PORT_BACK_PANEL
);
18 /* P2: left side port, USB debug */
19 pei_data_usb2_port(pei_data
, 1, 0x0040, 1, USB_OC_PIN_SKIP
, USB_PORT_BACK_PANEL
);
20 /* P3: digitizer and right side ports (Microchip hub) */
21 pei_data_usb2_port(pei_data
, 2, 0x0040, 1, USB_OC_PIN_SKIP
, USB_PORT_BACK_PANEL
);
23 pei_data_usb2_port(pei_data
, 3, 0x0040, 1, USB_OC_PIN_SKIP
, USB_PORT_BACK_PANEL
);
24 /* P5: fingerprint reader */
25 pei_data_usb2_port(pei_data
, 4, 0x0040, 1, USB_OC_PIN_SKIP
, USB_PORT_BACK_PANEL
);
27 pei_data_usb2_port(pei_data
, 5, 0x0040, 1, USB_OC_PIN_SKIP
, USB_PORT_BACK_PANEL
);
29 pei_data_usb2_port(pei_data
, 6, 0x0040, 1, USB_OC_PIN_SKIP
, USB_PORT_BACK_PANEL
);
31 pei_data_usb2_port(pei_data
, 7, 0x0040, 1, USB_OC_PIN_SKIP
, USB_PORT_BACK_PANEL
);
34 pei_data_usb3_port(pei_data
, 0, 1, USB_OC_PIN_SKIP
, 0);
35 /* P2: left side, USB debug */
36 pei_data_usb3_port(pei_data
, 1, 1, USB_OC_PIN_SKIP
, 0);
37 /* P3: right side (Microchip hub) */
38 pei_data_usb3_port(pei_data
, 2, 1, USB_OC_PIN_SKIP
, 0);
40 pei_data_usb3_port(pei_data
, 3, 1, USB_OC_PIN_SKIP
, 0);