Iru Cai | 7e28c84 | 2021-04-24 21:22:10 +0800 | [diff] [blame^] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
| 2 | |
| 3 | #include <soc/pei_data.h> |
| 4 | #include <soc/pei_wrapper.h> |
| 5 | |
| 6 | void mb_get_spd_map(struct spd_info *spdi) |
| 7 | { |
| 8 | spdi->addresses[0] = 0x50; |
| 9 | spdi->addresses[2] = 0x52; |
| 10 | } |
| 11 | |
| 12 | void mainboard_fill_pei_data(struct pei_data *pei_data) |
| 13 | { |
| 14 | pei_data->ec_present = 1; |
| 15 | |
| 16 | /* P1 */ |
| 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); |
| 22 | /* P4: WLAN */ |
| 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); |
| 26 | /* P6: WWAN */ |
| 27 | pei_data_usb2_port(pei_data, 5, 0x0040, 1, USB_OC_PIN_SKIP, USB_PORT_BACK_PANEL); |
| 28 | /* P7: webcam */ |
| 29 | pei_data_usb2_port(pei_data, 6, 0x0040, 1, USB_OC_PIN_SKIP, USB_PORT_BACK_PANEL); |
| 30 | /* P8 */ |
| 31 | pei_data_usb2_port(pei_data, 7, 0x0040, 1, USB_OC_PIN_SKIP, USB_PORT_BACK_PANEL); |
| 32 | |
| 33 | /* P1 */ |
| 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); |
| 39 | /* P4 */ |
| 40 | pei_data_usb3_port(pei_data, 3, 1, USB_OC_PIN_SKIP, 0); |
| 41 | } |