2 * This file is part of the coreboot project.
4 * Copyright (C) 2015 Google Inc.
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; version 2 of the License.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
19 #include <soc/pei_data.h>
20 #include <soc/pei_wrapper.h>
22 void mainboard_fill_pei_data(struct pei_data
*pei_data
)
24 pei_data
->ec_present
= 0;
27 pei_data_usb2_port(pei_data
, 0, 0x0064, 1, 0,
29 /* P1: Port A, CN22 */
30 pei_data_usb2_port(pei_data
, 1, 0x0040, 1, 0,
32 /* P2: Port B, CN23 */
33 pei_data_usb2_port(pei_data
, 2, 0x0040, 1, 1,
36 pei_data_usb2_port(pei_data
, 3, 0x0040, 1, USB_OC_PIN_SKIP
,
38 /* P4: Port C, CN25 */
39 pei_data_usb2_port(pei_data
, 4, 0x0040, 1, 2,
41 /* P5: Port D, CN25 */
42 pei_data_usb2_port(pei_data
, 5, 0x0040, 1, 2,
45 pei_data_usb2_port(pei_data
, 6, 0x0040, 1, USB_OC_PIN_SKIP
,
48 pei_data_usb2_port(pei_data
, 7, 0x0000, 0, 0,
52 pei_data_usb3_port(pei_data
, 0, 1, 0, 0);
54 pei_data_usb3_port(pei_data
, 1, 1, 1, 0);
56 pei_data_usb3_port(pei_data
, 2, 1, 2, 0);
58 pei_data_usb3_port(pei_data
, 3, 1, 2, 0);