broadwell boards: Reflow USB2 parameter statements

These statements fit on a single line. Reflow them to ease future works.

Change-Id: Ie18e9a00f67b999fdcedcab3c28b68e34bc93da4
Signed-off-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/55814
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Matt DeVillier <matt.devillier@gmail.com>
Reviewed-by: Michael Niewöhner <foss@mniewoehner.de>
This commit is contained in:
Angel Pons 2021-06-23 18:59:46 +02:00 committed by Felix Held
parent 20cc942d9e
commit a3adb75b52
13 changed files with 104 additions and 208 deletions

View File

@ -12,29 +12,21 @@ void mainboard_fill_pei_data(struct pei_data *pei_data)
pei_data->dimm_channel1_disabled = 2; pei_data->dimm_channel1_disabled = 2;
/* P0: LTE */ /* P0: LTE */
pei_data_usb2_port(pei_data, 0, 0x0150, 1, USB_OC_PIN_SKIP, pei_data_usb2_port(pei_data, 0, 0x0150, 1, USB_OC_PIN_SKIP, USB_PORT_MINI_PCIE);
USB_PORT_MINI_PCIE);
/* P1: POrt A, CN10 */ /* P1: POrt A, CN10 */
pei_data_usb2_port(pei_data, 1, 0x0040, 1, 0, pei_data_usb2_port(pei_data, 1, 0x0040, 1, 0, USB_PORT_BACK_PANEL);
USB_PORT_BACK_PANEL);
/* P2: CCD */ /* P2: CCD */
pei_data_usb2_port(pei_data, 2, 0x0080, 1, USB_OC_PIN_SKIP, pei_data_usb2_port(pei_data, 2, 0x0080, 1, USB_OC_PIN_SKIP, USB_PORT_INTERNAL);
USB_PORT_INTERNAL);
/* P3: BT */ /* P3: BT */
pei_data_usb2_port(pei_data, 3, 0x0040, 1, USB_OC_PIN_SKIP, pei_data_usb2_port(pei_data, 3, 0x0040, 1, USB_OC_PIN_SKIP, USB_PORT_MINI_PCIE);
USB_PORT_MINI_PCIE);
/* P4: Port B, CN6 */ /* P4: Port B, CN6 */
pei_data_usb2_port(pei_data, 4, 0x0040, 1, 2, pei_data_usb2_port(pei_data, 4, 0x0040, 1, 2, USB_PORT_BACK_PANEL);
USB_PORT_BACK_PANEL);
/* P5: EMPTY */ /* P5: EMPTY */
pei_data_usb2_port(pei_data, 5, 0x0000, 0, USB_OC_PIN_SKIP, pei_data_usb2_port(pei_data, 5, 0x0000, 0, USB_OC_PIN_SKIP, USB_PORT_SKIP);
USB_PORT_SKIP);
/* P6: SD Card */ /* P6: SD Card */
pei_data_usb2_port(pei_data, 6, 0x0150, 1, USB_OC_PIN_SKIP, pei_data_usb2_port(pei_data, 6, 0x0150, 1, USB_OC_PIN_SKIP, USB_PORT_FLEX);
USB_PORT_FLEX);
/* P7: EMPTY */ /* P7: EMPTY */
pei_data_usb2_port(pei_data, 7, 0x0000, 0, USB_OC_PIN_SKIP, pei_data_usb2_port(pei_data, 7, 0x0000, 0, USB_OC_PIN_SKIP, USB_PORT_SKIP);
USB_PORT_SKIP);
/* P1: Port A, CN6 */ /* P1: Port A, CN6 */
pei_data_usb3_port(pei_data, 0, 1, 0, 0); pei_data_usb3_port(pei_data, 0, 1, 0, 0);

View File

@ -12,29 +12,21 @@ void mainboard_fill_pei_data(struct pei_data *pei_data)
pei_data->dimm_channel1_disabled = 2; pei_data->dimm_channel1_disabled = 2;
/* P0: LTE */ /* P0: LTE */
pei_data_usb2_port(pei_data, 0, 0x0150, 1, USB_OC_PIN_SKIP, pei_data_usb2_port(pei_data, 0, 0x0150, 1, USB_OC_PIN_SKIP, USB_PORT_MINI_PCIE);
USB_PORT_MINI_PCIE);
/* P1: POrt A, CN10 */ /* P1: POrt A, CN10 */
pei_data_usb2_port(pei_data, 1, 0x0040, 1, 0, pei_data_usb2_port(pei_data, 1, 0x0040, 1, 0, USB_PORT_BACK_PANEL);
USB_PORT_BACK_PANEL);
/* P2: CCD */ /* P2: CCD */
pei_data_usb2_port(pei_data, 2, 0x0080, 1, USB_OC_PIN_SKIP, pei_data_usb2_port(pei_data, 2, 0x0080, 1, USB_OC_PIN_SKIP, USB_PORT_INTERNAL);
USB_PORT_INTERNAL);
/* P3: BT */ /* P3: BT */
pei_data_usb2_port(pei_data, 3, 0x0040, 1, USB_OC_PIN_SKIP, pei_data_usb2_port(pei_data, 3, 0x0040, 1, USB_OC_PIN_SKIP, USB_PORT_MINI_PCIE);
USB_PORT_MINI_PCIE);
/* P4: Port B, CN6 */ /* P4: Port B, CN6 */
pei_data_usb2_port(pei_data, 4, 0x0040, 1, 2, pei_data_usb2_port(pei_data, 4, 0x0040, 1, 2, USB_PORT_BACK_PANEL);
USB_PORT_BACK_PANEL);
/* P5: EMPTY */ /* P5: EMPTY */
pei_data_usb2_port(pei_data, 5, 0x0000, 0, USB_OC_PIN_SKIP, pei_data_usb2_port(pei_data, 5, 0x0000, 0, USB_OC_PIN_SKIP, USB_PORT_SKIP);
USB_PORT_SKIP);
/* P6: SD Card */ /* P6: SD Card */
pei_data_usb2_port(pei_data, 6, 0x0150, 1, USB_OC_PIN_SKIP, pei_data_usb2_port(pei_data, 6, 0x0150, 1, USB_OC_PIN_SKIP, USB_PORT_FLEX);
USB_PORT_FLEX);
/* P7: EMPTY */ /* P7: EMPTY */
pei_data_usb2_port(pei_data, 7, 0x0000, 0, USB_OC_PIN_SKIP, pei_data_usb2_port(pei_data, 7, 0x0000, 0, USB_OC_PIN_SKIP, USB_PORT_SKIP);
USB_PORT_SKIP);
/* P1: Port A, CN6 */ /* P1: Port A, CN6 */
pei_data_usb3_port(pei_data, 0, 1, 0, 0); pei_data_usb3_port(pei_data, 0, 1, 0, 0);

View File

@ -8,29 +8,21 @@ void mainboard_fill_pei_data(struct pei_data *pei_data)
pei_data->ec_present = 1; pei_data->ec_present = 1;
/* P0: Side USB3.0 port, USB3S1 */ /* P0: Side USB3.0 port, USB3S1 */
pei_data_usb2_port(pei_data, 0, 0x0150, 1, 0, pei_data_usb2_port(pei_data, 0, 0x0150, 1, 0, USB_PORT_INTERNAL);
USB_PORT_INTERNAL);
/* P1: Rear USB3.0 port, USB3R1 */ /* P1: Rear USB3.0 port, USB3R1 */
pei_data_usb2_port(pei_data, 1, 0x0040, 1, 0, pei_data_usb2_port(pei_data, 1, 0x0040, 1, 0, USB_PORT_INTERNAL);
USB_PORT_INTERNAL);
/* P2: Rear USB3.0 port, USB3R2 */ /* P2: Rear USB3.0 port, USB3R2 */
pei_data_usb2_port(pei_data, 2, 0x0080, 1, 1, pei_data_usb2_port(pei_data, 2, 0x0080, 1, 1, USB_PORT_INTERNAL);
USB_PORT_INTERNAL);
/* P3: Card Reader, CRS1 */ /* P3: Card Reader, CRS1 */
pei_data_usb2_port(pei_data, 3, 0x0040, 1, USB_OC_PIN_SKIP, pei_data_usb2_port(pei_data, 3, 0x0040, 1, USB_OC_PIN_SKIP, USB_PORT_INTERNAL);
USB_PORT_INTERNAL);
/* P4: Rear USB2.0 port, USB2R1 */ /* P4: Rear USB2.0 port, USB2R1 */
pei_data_usb2_port(pei_data, 4, 0x0040, 1, 2, pei_data_usb2_port(pei_data, 4, 0x0040, 1, 2, USB_PORT_INTERNAL);
USB_PORT_INTERNAL);
/* P5: 2D Camera */ /* P5: 2D Camera */
pei_data_usb2_port(pei_data, 5, 0x0000, 1, USB_OC_PIN_SKIP, pei_data_usb2_port(pei_data, 5, 0x0000, 1, USB_OC_PIN_SKIP, USB_PORT_INTERNAL);
USB_PORT_INTERNAL);
/* P6: VP8 */ /* P6: VP8 */
pei_data_usb2_port(pei_data, 6, 0x0150, 1, USB_OC_PIN_SKIP, pei_data_usb2_port(pei_data, 6, 0x0150, 1, USB_OC_PIN_SKIP, USB_PORT_MINI_PCIE);
USB_PORT_MINI_PCIE);
/* P7: WLAN & BT */ /* P7: WLAN & BT */
pei_data_usb2_port(pei_data, 7, 0x0000, 1, USB_OC_PIN_SKIP, pei_data_usb2_port(pei_data, 7, 0x0000, 1, USB_OC_PIN_SKIP, USB_PORT_MINI_PCIE);
USB_PORT_MINI_PCIE);
/* P1: Side USB3.0 port, USB3S1 */ /* P1: Side USB3.0 port, USB3S1 */
pei_data_usb3_port(pei_data, 0, 1, 0, 0); pei_data_usb3_port(pei_data, 0, 1, 0, 0);

View File

@ -12,29 +12,21 @@ void mainboard_fill_pei_data(struct pei_data *pei_data)
pei_data->dimm_channel1_disabled = 2; pei_data->dimm_channel1_disabled = 2;
/* P0: LTE */ /* P0: LTE */
pei_data_usb2_port(pei_data, 0, 0x0150, 1, USB_OC_PIN_SKIP, pei_data_usb2_port(pei_data, 0, 0x0150, 1, USB_OC_PIN_SKIP, USB_PORT_MINI_PCIE);
USB_PORT_MINI_PCIE);
/* P1: POrt A, CN10 */ /* P1: POrt A, CN10 */
pei_data_usb2_port(pei_data, 1, 0x0040, 1, 0, pei_data_usb2_port(pei_data, 1, 0x0040, 1, 0, USB_PORT_BACK_PANEL);
USB_PORT_BACK_PANEL);
/* P2: CCD */ /* P2: CCD */
pei_data_usb2_port(pei_data, 2, 0x0080, 1, USB_OC_PIN_SKIP, pei_data_usb2_port(pei_data, 2, 0x0080, 1, USB_OC_PIN_SKIP, USB_PORT_INTERNAL);
USB_PORT_INTERNAL);
/* P3: BT */ /* P3: BT */
pei_data_usb2_port(pei_data, 3, 0x0040, 1, USB_OC_PIN_SKIP, pei_data_usb2_port(pei_data, 3, 0x0040, 1, USB_OC_PIN_SKIP, USB_PORT_MINI_PCIE);
USB_PORT_MINI_PCIE);
/* P4: Port B, CN6 */ /* P4: Port B, CN6 */
pei_data_usb2_port(pei_data, 4, 0x0040, 1, 2, pei_data_usb2_port(pei_data, 4, 0x0040, 1, 2, USB_PORT_BACK_PANEL);
USB_PORT_BACK_PANEL);
/* P5: EMPTY */ /* P5: EMPTY */
pei_data_usb2_port(pei_data, 5, 0x0000, 0, USB_OC_PIN_SKIP, pei_data_usb2_port(pei_data, 5, 0x0000, 0, USB_OC_PIN_SKIP, USB_PORT_SKIP);
USB_PORT_SKIP);
/* P6: SD Card */ /* P6: SD Card */
pei_data_usb2_port(pei_data, 6, 0x0150, 1, USB_OC_PIN_SKIP, pei_data_usb2_port(pei_data, 6, 0x0150, 1, USB_OC_PIN_SKIP, USB_PORT_FLEX);
USB_PORT_FLEX);
/* P7: EMPTY */ /* P7: EMPTY */
pei_data_usb2_port(pei_data, 7, 0x0000, 0, USB_OC_PIN_SKIP, pei_data_usb2_port(pei_data, 7, 0x0000, 0, USB_OC_PIN_SKIP, USB_PORT_SKIP);
USB_PORT_SKIP);
/* P1: Port A, CN6 */ /* P1: Port A, CN6 */
pei_data_usb3_port(pei_data, 0, 1, 0, 0); pei_data_usb3_port(pei_data, 0, 1, 0, 0);

View File

@ -12,29 +12,21 @@ void mainboard_fill_pei_data(struct pei_data *pei_data)
pei_data->dimm_channel1_disabled = 2; pei_data->dimm_channel1_disabled = 2;
/* P0: Port B, CN01 (IOBoard) */ /* P0: Port B, CN01 (IOBoard) */
pei_data_usb2_port(pei_data, 0, 0x0150, 1, 0, pei_data_usb2_port(pei_data, 0, 0x0150, 1, 0, USB_PORT_BACK_PANEL);
USB_PORT_BACK_PANEL);
/* P1: Port A, CN01 */ /* P1: Port A, CN01 */
pei_data_usb2_port(pei_data, 1, 0x0040, 1, 2, pei_data_usb2_port(pei_data, 1, 0x0040, 1, 2, USB_PORT_BACK_PANEL);
USB_PORT_BACK_PANEL);
/* P2: CCD */ /* P2: CCD */
pei_data_usb2_port(pei_data, 2, 0x0080, 1, USB_OC_PIN_SKIP, pei_data_usb2_port(pei_data, 2, 0x0080, 1, USB_OC_PIN_SKIP, USB_PORT_INTERNAL);
USB_PORT_INTERNAL);
/* P3: BT */ /* P3: BT */
pei_data_usb2_port(pei_data, 3, 0x0040, 1, USB_OC_PIN_SKIP, pei_data_usb2_port(pei_data, 3, 0x0040, 1, USB_OC_PIN_SKIP, USB_PORT_MINI_PCIE);
USB_PORT_MINI_PCIE);
/* P4: Empty */ /* P4: Empty */
pei_data_usb2_port(pei_data, 4, 0x0000, 0, USB_OC_PIN_SKIP, pei_data_usb2_port(pei_data, 4, 0x0000, 0, USB_OC_PIN_SKIP, USB_PORT_SKIP);
USB_PORT_SKIP);
/* P5: EMPTY */ /* P5: EMPTY */
pei_data_usb2_port(pei_data, 5, 0x0000, 0, USB_OC_PIN_SKIP, pei_data_usb2_port(pei_data, 5, 0x0000, 0, USB_OC_PIN_SKIP, USB_PORT_SKIP);
USB_PORT_SKIP);
/* P6: SD Card */ /* P6: SD Card */
pei_data_usb2_port(pei_data, 6, 0x0040, 1, USB_OC_PIN_SKIP, pei_data_usb2_port(pei_data, 6, 0x0040, 1, USB_OC_PIN_SKIP, USB_PORT_FLEX);
USB_PORT_FLEX);
/* P7: EMPTY */ /* P7: EMPTY */
pei_data_usb2_port(pei_data, 7, 0x0000, 0, USB_OC_PIN_SKIP, pei_data_usb2_port(pei_data, 7, 0x0000, 0, USB_OC_PIN_SKIP, USB_PORT_SKIP);
USB_PORT_SKIP);
/* P0: PORTB*/ /* P0: PORTB*/
pei_data_usb3_port(pei_data, 0, 1, 0, 0); pei_data_usb3_port(pei_data, 0, 1, 0, 0);

View File

@ -28,29 +28,21 @@ void mainboard_fill_pei_data(struct pei_data *pei_data)
memcpy(pei_data->dqs_map, dqs_map, sizeof(dqs_map)); memcpy(pei_data->dqs_map, dqs_map, sizeof(dqs_map));
/* P0: HOST PORT */ /* P0: HOST PORT */
pei_data_usb2_port(pei_data, 0, 0x0080, 1, 0, pei_data_usb2_port(pei_data, 0, 0x0080, 1, 0, USB_PORT_BACK_PANEL);
USB_PORT_BACK_PANEL);
/* P1: HOST PORT */ /* P1: HOST PORT */
pei_data_usb2_port(pei_data, 1, 0x0080, 1, 1, pei_data_usb2_port(pei_data, 1, 0x0080, 1, 1, USB_PORT_BACK_PANEL);
USB_PORT_BACK_PANEL);
/* P2: RAIDEN */ /* P2: RAIDEN */
pei_data_usb2_port(pei_data, 2, 0x0080, 1, USB_OC_PIN_SKIP, pei_data_usb2_port(pei_data, 2, 0x0080, 1, USB_OC_PIN_SKIP, USB_PORT_BACK_PANEL);
USB_PORT_BACK_PANEL);
/* P3: SD CARD */ /* P3: SD CARD */
pei_data_usb2_port(pei_data, 3, 0x0040, 1, USB_OC_PIN_SKIP, pei_data_usb2_port(pei_data, 3, 0x0040, 1, USB_OC_PIN_SKIP, USB_PORT_INTERNAL);
USB_PORT_INTERNAL);
/* P4: RAIDEN */ /* P4: RAIDEN */
pei_data_usb2_port(pei_data, 4, 0x0080, 1, USB_OC_PIN_SKIP, pei_data_usb2_port(pei_data, 4, 0x0080, 1, USB_OC_PIN_SKIP, USB_PORT_BACK_PANEL);
USB_PORT_BACK_PANEL);
/* P5: WWAN (Disabled) */ /* P5: WWAN (Disabled) */
pei_data_usb2_port(pei_data, 5, 0x0000, 0, USB_OC_PIN_SKIP, pei_data_usb2_port(pei_data, 5, 0x0000, 0, USB_OC_PIN_SKIP, USB_PORT_SKIP);
USB_PORT_SKIP);
/* P6: CAMERA */ /* P6: CAMERA */
pei_data_usb2_port(pei_data, 6, 0x0040, 1, USB_OC_PIN_SKIP, pei_data_usb2_port(pei_data, 6, 0x0040, 1, USB_OC_PIN_SKIP, USB_PORT_INTERNAL);
USB_PORT_INTERNAL);
/* P7: BT */ /* P7: BT */
pei_data_usb2_port(pei_data, 7, 0x0040, 1, USB_OC_PIN_SKIP, pei_data_usb2_port(pei_data, 7, 0x0040, 1, USB_OC_PIN_SKIP, USB_PORT_INTERNAL);
USB_PORT_INTERNAL);
/* P1: HOST PORT */ /* P1: HOST PORT */
pei_data_usb3_port(pei_data, 0, 1, 0, 0); pei_data_usb3_port(pei_data, 0, 1, 0, 0);

View File

@ -8,29 +8,21 @@ void mainboard_fill_pei_data(struct pei_data *pei_data)
pei_data->ec_present = 0; pei_data->ec_present = 0;
/* P0: VP8 */ /* P0: VP8 */
pei_data_usb2_port(pei_data, 0, 0x0064, 1, 0, pei_data_usb2_port(pei_data, 0, 0x0064, 1, 0, USB_PORT_MINI_PCIE);
USB_PORT_MINI_PCIE);
/* P1: Port A, CN22 */ /* P1: Port A, CN22 */
pei_data_usb2_port(pei_data, 1, 0x0040, 1, 0, pei_data_usb2_port(pei_data, 1, 0x0040, 1, 0, USB_PORT_INTERNAL);
USB_PORT_INTERNAL);
/* P2: Port B, CN23 */ /* P2: Port B, CN23 */
pei_data_usb2_port(pei_data, 2, 0x0040, 1, 1, pei_data_usb2_port(pei_data, 2, 0x0040, 1, 1, USB_PORT_INTERNAL);
USB_PORT_INTERNAL);
/* P3: WLAN */ /* P3: WLAN */
pei_data_usb2_port(pei_data, 3, 0x0040, 1, USB_OC_PIN_SKIP, pei_data_usb2_port(pei_data, 3, 0x0040, 1, USB_OC_PIN_SKIP, USB_PORT_MINI_PCIE);
USB_PORT_MINI_PCIE);
/* P4: Port C, CN25 */ /* P4: Port C, CN25 */
pei_data_usb2_port(pei_data, 4, 0x0040, 1, 2, pei_data_usb2_port(pei_data, 4, 0x0040, 1, 2, USB_PORT_INTERNAL);
USB_PORT_INTERNAL);
/* P5: Port D, CN25 */ /* P5: Port D, CN25 */
pei_data_usb2_port(pei_data, 5, 0x0040, 1, 2, pei_data_usb2_port(pei_data, 5, 0x0040, 1, 2, USB_PORT_INTERNAL);
USB_PORT_INTERNAL);
/* P6: Card Reader */ /* P6: Card Reader */
pei_data_usb2_port(pei_data, 6, 0x0040, 1, USB_OC_PIN_SKIP, pei_data_usb2_port(pei_data, 6, 0x0040, 1, USB_OC_PIN_SKIP, USB_PORT_INTERNAL);
USB_PORT_INTERNAL);
/* P7: EMPTY */ /* P7: EMPTY */
pei_data_usb2_port(pei_data, 7, 0x0000, 0, 0, pei_data_usb2_port(pei_data, 7, 0x0000, 0, 0, USB_PORT_SKIP);
USB_PORT_SKIP);
/* P1: CN22 */ /* P1: CN22 */
pei_data_usb3_port(pei_data, 0, 1, 0, 0); pei_data_usb3_port(pei_data, 0, 1, 0, 0);

View File

@ -8,29 +8,21 @@ void mainboard_fill_pei_data(struct pei_data *pei_data)
pei_data->ec_present = 0; pei_data->ec_present = 0;
/* P0: VP8 */ /* P0: VP8 */
pei_data_usb2_port(pei_data, 0, 0x0064, 1, 0, pei_data_usb2_port(pei_data, 0, 0x0064, 1, 0, USB_PORT_MINI_PCIE);
USB_PORT_MINI_PCIE);
/* P1: Port A, CN22 */ /* P1: Port A, CN22 */
pei_data_usb2_port(pei_data, 1, 0x0040, 1, 0, pei_data_usb2_port(pei_data, 1, 0x0040, 1, 0, USB_PORT_INTERNAL);
USB_PORT_INTERNAL);
/* P2: Port B, CN23 */ /* P2: Port B, CN23 */
pei_data_usb2_port(pei_data, 2, 0x0040, 1, 1, pei_data_usb2_port(pei_data, 2, 0x0040, 1, 1, USB_PORT_INTERNAL);
USB_PORT_INTERNAL);
/* P3: WLAN */ /* P3: WLAN */
pei_data_usb2_port(pei_data, 3, 0x0040, 1, USB_OC_PIN_SKIP, pei_data_usb2_port(pei_data, 3, 0x0040, 1, USB_OC_PIN_SKIP, USB_PORT_MINI_PCIE);
USB_PORT_MINI_PCIE);
/* P4: Port C, CN25 */ /* P4: Port C, CN25 */
pei_data_usb2_port(pei_data, 4, 0x0040, 1, 2, pei_data_usb2_port(pei_data, 4, 0x0040, 1, 2, USB_PORT_INTERNAL);
USB_PORT_INTERNAL);
/* P5: Port D, CN25 */ /* P5: Port D, CN25 */
pei_data_usb2_port(pei_data, 5, 0x0040, 1, 2, pei_data_usb2_port(pei_data, 5, 0x0040, 1, 2, USB_PORT_INTERNAL);
USB_PORT_INTERNAL);
/* P6: Card Reader */ /* P6: Card Reader */
pei_data_usb2_port(pei_data, 6, 0x0040, 1, USB_OC_PIN_SKIP, pei_data_usb2_port(pei_data, 6, 0x0040, 1, USB_OC_PIN_SKIP, USB_PORT_INTERNAL);
USB_PORT_INTERNAL);
/* P7: EMPTY */ /* P7: EMPTY */
pei_data_usb2_port(pei_data, 7, 0x0000, 0, 0, pei_data_usb2_port(pei_data, 7, 0x0000, 0, 0, USB_PORT_SKIP);
USB_PORT_SKIP);
/* P1: CN22 */ /* P1: CN22 */
pei_data_usb3_port(pei_data, 0, 1, 0, 0); pei_data_usb3_port(pei_data, 0, 1, 0, 0);

View File

@ -8,29 +8,21 @@ void mainboard_fill_pei_data(struct pei_data *pei_data)
pei_data->ec_present = 0; pei_data->ec_present = 0;
/* P0: VP8 */ /* P0: VP8 */
pei_data_usb2_port(pei_data, 0, 0x0064, 1, 0, pei_data_usb2_port(pei_data, 0, 0x0064, 1, 0, USB_PORT_MINI_PCIE);
USB_PORT_MINI_PCIE);
/* P1: Port A, CN22 */ /* P1: Port A, CN22 */
pei_data_usb2_port(pei_data, 1, 0x0040, 1, 0, pei_data_usb2_port(pei_data, 1, 0x0040, 1, 0, USB_PORT_INTERNAL);
USB_PORT_INTERNAL);
/* P2: Port B, CN23 */ /* P2: Port B, CN23 */
pei_data_usb2_port(pei_data, 2, 0x0040, 1, 1, pei_data_usb2_port(pei_data, 2, 0x0040, 1, 1, USB_PORT_INTERNAL);
USB_PORT_INTERNAL);
/* P3: WLAN */ /* P3: WLAN */
pei_data_usb2_port(pei_data, 3, 0x0040, 1, USB_OC_PIN_SKIP, pei_data_usb2_port(pei_data, 3, 0x0040, 1, USB_OC_PIN_SKIP, USB_PORT_MINI_PCIE);
USB_PORT_MINI_PCIE);
/* P4: Port C, CN25 */ /* P4: Port C, CN25 */
pei_data_usb2_port(pei_data, 4, 0x0040, 1, 2, pei_data_usb2_port(pei_data, 4, 0x0040, 1, 2, USB_PORT_INTERNAL);
USB_PORT_INTERNAL);
/* P5: Port D, CN25 */ /* P5: Port D, CN25 */
pei_data_usb2_port(pei_data, 5, 0x0040, 1, 2, pei_data_usb2_port(pei_data, 5, 0x0040, 1, 2, USB_PORT_INTERNAL);
USB_PORT_INTERNAL);
/* P6: Card Reader */ /* P6: Card Reader */
pei_data_usb2_port(pei_data, 6, 0x0040, 1, USB_OC_PIN_SKIP, pei_data_usb2_port(pei_data, 6, 0x0040, 1, USB_OC_PIN_SKIP, USB_PORT_INTERNAL);
USB_PORT_INTERNAL);
/* P7: EMPTY */ /* P7: EMPTY */
pei_data_usb2_port(pei_data, 7, 0x0000, 0, 0, pei_data_usb2_port(pei_data, 7, 0x0000, 0, 0, USB_PORT_SKIP);
USB_PORT_SKIP);
/* P1: CN22 */ /* P1: CN22 */
pei_data_usb3_port(pei_data, 0, 1, 0, 0); pei_data_usb3_port(pei_data, 0, 1, 0, 0);

View File

@ -8,29 +8,21 @@ void mainboard_fill_pei_data(struct pei_data *pei_data)
pei_data->ec_present = 0; pei_data->ec_present = 0;
/* P0: VP8 */ /* P0: VP8 */
pei_data_usb2_port(pei_data, 0, 0x0064, 1, USB_OC_PIN_SKIP, pei_data_usb2_port(pei_data, 0, 0x0064, 1, USB_OC_PIN_SKIP, USB_PORT_MINI_PCIE);
USB_PORT_MINI_PCIE);
/* P1: Port 3, USB3 */ /* P1: Port 3, USB3 */
pei_data_usb2_port(pei_data, 1, 0x0040, 1, 0, pei_data_usb2_port(pei_data, 1, 0x0040, 1, 0, USB_PORT_INTERNAL);
USB_PORT_INTERNAL);
/* P2: Port 4, USB4 */ /* P2: Port 4, USB4 */
pei_data_usb2_port(pei_data, 2, 0x0040, 1, 1, pei_data_usb2_port(pei_data, 2, 0x0040, 1, 1, USB_PORT_INTERNAL);
USB_PORT_INTERNAL);
/* P3: Mini Card */ /* P3: Mini Card */
pei_data_usb2_port(pei_data, 3, 0x0040, 1, USB_OC_PIN_SKIP, pei_data_usb2_port(pei_data, 3, 0x0040, 1, USB_OC_PIN_SKIP, USB_PORT_MINI_PCIE);
USB_PORT_MINI_PCIE);
/* P4: Port 1, USB1 */ /* P4: Port 1, USB1 */
pei_data_usb2_port(pei_data, 4, 0x0040, 1, 2, pei_data_usb2_port(pei_data, 4, 0x0040, 1, 2, USB_PORT_INTERNAL);
USB_PORT_INTERNAL);
/* P5: Port 2, USB2 */ /* P5: Port 2, USB2 */
pei_data_usb2_port(pei_data, 5, 0x0040, 1, 2, pei_data_usb2_port(pei_data, 5, 0x0040, 1, 2, USB_PORT_INTERNAL);
USB_PORT_INTERNAL);
/* P6: Card Reader */ /* P6: Card Reader */
pei_data_usb2_port(pei_data, 6, 0x0040, 1, USB_OC_PIN_SKIP, pei_data_usb2_port(pei_data, 6, 0x0040, 1, USB_OC_PIN_SKIP, USB_PORT_INTERNAL);
USB_PORT_INTERNAL);
/* P7: Pin Header */ /* P7: Pin Header */
pei_data_usb2_port(pei_data, 7, 0x0040, 1, 3, pei_data_usb2_port(pei_data, 7, 0x0040, 1, 3, USB_PORT_INTERNAL);
USB_PORT_INTERNAL);
/* P1: USB1 */ /* P1: USB1 */
pei_data_usb3_port(pei_data, 0, 1, 2, 0); pei_data_usb3_port(pei_data, 0, 1, 2, 0);

View File

@ -15,22 +15,14 @@ void mainboard_fill_spd_data(struct pei_data *pei_data)
void mainboard_fill_pei_data(struct pei_data *pei_data) void mainboard_fill_pei_data(struct pei_data *pei_data)
{ {
pei_data_usb2_port(pei_data, 0, 0x40, 1, USB_OC_PIN_SKIP, pei_data_usb2_port(pei_data, 0, 0x40, 1, USB_OC_PIN_SKIP, USB_PORT_FRONT_PANEL);
USB_PORT_FRONT_PANEL); pei_data_usb2_port(pei_data, 1, 0x40, 1, USB_OC_PIN_SKIP, USB_PORT_FRONT_PANEL);
pei_data_usb2_port(pei_data, 1, 0x40, 1, USB_OC_PIN_SKIP, pei_data_usb2_port(pei_data, 2, 0x40, 1, USB_OC_PIN_SKIP, USB_PORT_FRONT_PANEL);
USB_PORT_FRONT_PANEL); pei_data_usb2_port(pei_data, 3, 0x40, 1, USB_OC_PIN_SKIP, USB_PORT_FRONT_PANEL);
pei_data_usb2_port(pei_data, 2, 0x40, 1, USB_OC_PIN_SKIP, pei_data_usb2_port(pei_data, 4, 0x40, 1, USB_OC_PIN_SKIP, USB_PORT_FRONT_PANEL);
USB_PORT_FRONT_PANEL); pei_data_usb2_port(pei_data, 5, 0x40, 1, USB_OC_PIN_SKIP, USB_PORT_FRONT_PANEL);
pei_data_usb2_port(pei_data, 3, 0x40, 1, USB_OC_PIN_SKIP, pei_data_usb2_port(pei_data, 6, 0x40, 1, USB_OC_PIN_SKIP, USB_PORT_FRONT_PANEL);
USB_PORT_FRONT_PANEL); pei_data_usb2_port(pei_data, 7, 0x40, 1, USB_OC_PIN_SKIP, USB_PORT_FRONT_PANEL);
pei_data_usb2_port(pei_data, 4, 0x40, 1, USB_OC_PIN_SKIP,
USB_PORT_FRONT_PANEL);
pei_data_usb2_port(pei_data, 5, 0x40, 1, USB_OC_PIN_SKIP,
USB_PORT_FRONT_PANEL);
pei_data_usb2_port(pei_data, 6, 0x40, 1, USB_OC_PIN_SKIP,
USB_PORT_FRONT_PANEL);
pei_data_usb2_port(pei_data, 7, 0x40, 1, USB_OC_PIN_SKIP,
USB_PORT_FRONT_PANEL);
pei_data_usb3_port(pei_data, 0, 1, USB_OC_PIN_SKIP, 0); pei_data_usb3_port(pei_data, 0, 1, USB_OC_PIN_SKIP, 0);
pei_data_usb3_port(pei_data, 1, 1, USB_OC_PIN_SKIP, 0); pei_data_usb3_port(pei_data, 1, 1, USB_OC_PIN_SKIP, 0);

View File

@ -15,29 +15,21 @@ void mainboard_fill_pei_data(struct pei_data *pei_data)
pei_data->ec_present = 1; pei_data->ec_present = 1;
/* P1: Left Side Port (USB2 only) */ /* P1: Left Side Port (USB2 only) */
pei_data_usb2_port(pei_data, 0, 0x0080, 1, USB_OC_PIN_SKIP, pei_data_usb2_port(pei_data, 0, 0x0080, 1, USB_OC_PIN_SKIP, USB_PORT_BACK_PANEL);
USB_PORT_BACK_PANEL);
/* P2: Right Side Port (USB2) */ /* P2: Right Side Port (USB2) */
pei_data_usb2_port(pei_data, 1, 0x0080, 1, USB_OC_PIN_SKIP, pei_data_usb2_port(pei_data, 1, 0x0080, 1, USB_OC_PIN_SKIP, USB_PORT_BACK_PANEL);
USB_PORT_BACK_PANEL);
/* P3: Empty */ /* P3: Empty */
pei_data_usb2_port(pei_data, 2, 0x0000, 0, USB_OC_PIN_SKIP, pei_data_usb2_port(pei_data, 2, 0x0000, 0, USB_OC_PIN_SKIP, USB_PORT_SKIP);
USB_PORT_SKIP);
/* P4: Camera */ /* P4: Camera */
pei_data_usb2_port(pei_data, 3, 0x0080, 1, USB_OC_PIN_SKIP, pei_data_usb2_port(pei_data, 3, 0x0080, 1, USB_OC_PIN_SKIP, USB_PORT_BACK_PANEL);
USB_PORT_BACK_PANEL);
/* P5: Bluetooth */ /* P5: Bluetooth */
pei_data_usb2_port(pei_data, 4, 0x0080, 1, USB_OC_PIN_SKIP, pei_data_usb2_port(pei_data, 4, 0x0080, 1, USB_OC_PIN_SKIP, USB_PORT_BACK_PANEL);
USB_PORT_BACK_PANEL);
/* P6: Empty */ /* P6: Empty */
pei_data_usb2_port(pei_data, 5, 0x0080, 0, USB_OC_PIN_SKIP, pei_data_usb2_port(pei_data, 5, 0x0080, 0, USB_OC_PIN_SKIP, USB_PORT_SKIP);
USB_PORT_SKIP);
/* P7: Empty */ /* P7: Empty */
pei_data_usb2_port(pei_data, 6, 0x0080, 0, USB_OC_PIN_SKIP, pei_data_usb2_port(pei_data, 6, 0x0080, 0, USB_OC_PIN_SKIP, USB_PORT_SKIP);
USB_PORT_SKIP);
/* P8: SD Card */ /* P8: SD Card */
pei_data_usb2_port(pei_data, 7, 0x0080, 1, USB_OC_PIN_SKIP, pei_data_usb2_port(pei_data, 7, 0x0080, 1, USB_OC_PIN_SKIP, USB_PORT_BACK_PANEL);
USB_PORT_BACK_PANEL);
/* P1: Empty */ /* P1: Empty */
pei_data_usb3_port(pei_data, 0, 0, USB_OC_PIN_SKIP, 0); pei_data_usb3_port(pei_data, 0, 0, USB_OC_PIN_SKIP, 0);

View File

@ -20,29 +20,21 @@ void mainboard_fill_pei_data(struct pei_data *pei_data)
pei_data->ec_present = 1; pei_data->ec_present = 1;
/* P1: Right Side Port (USB2) */ /* P1: Right Side Port (USB2) */
pei_data_usb2_port(pei_data, 0, 0x0080, 1, USB_OC_PIN_SKIP, pei_data_usb2_port(pei_data, 0, 0x0080, 1, USB_OC_PIN_SKIP, USB_PORT_BACK_PANEL);
USB_PORT_BACK_PANEL);
/* P2: Right Side Port (USB2) */ /* P2: Right Side Port (USB2) */
pei_data_usb2_port(pei_data, 1, 0x0080, 1, USB_OC_PIN_SKIP, pei_data_usb2_port(pei_data, 1, 0x0080, 1, USB_OC_PIN_SKIP, USB_PORT_BACK_PANEL);
USB_PORT_BACK_PANEL);
/* P3: Left Side Port (USB2 only) */ /* P3: Left Side Port (USB2 only) */
pei_data_usb2_port(pei_data, 2, 0x0080, 1, USB_OC_PIN_SKIP, pei_data_usb2_port(pei_data, 2, 0x0080, 1, USB_OC_PIN_SKIP, USB_PORT_BACK_PANEL);
USB_PORT_BACK_PANEL);
/* P4: Left Side Port (USB2 only) */ /* P4: Left Side Port (USB2 only) */
pei_data_usb2_port(pei_data, 3, 0x0080, 1, USB_OC_PIN_SKIP, pei_data_usb2_port(pei_data, 3, 0x0080, 1, USB_OC_PIN_SKIP, USB_PORT_BACK_PANEL);
USB_PORT_BACK_PANEL);
/* P5: Empty */ /* P5: Empty */
pei_data_usb2_port(pei_data, 4, 0x0080, 0, USB_OC_PIN_SKIP, pei_data_usb2_port(pei_data, 4, 0x0080, 0, USB_OC_PIN_SKIP, USB_PORT_BACK_PANEL);
USB_PORT_BACK_PANEL);
/* P6: Bluetooth */ /* P6: Bluetooth */
pei_data_usb2_port(pei_data, 5, 0x0080, 1, USB_OC_PIN_SKIP, pei_data_usb2_port(pei_data, 5, 0x0080, 1, USB_OC_PIN_SKIP, USB_PORT_SKIP);
USB_PORT_SKIP);
/* P7: Camera */ /* P7: Camera */
pei_data_usb2_port(pei_data, 6, 0x0080, 1, USB_OC_PIN_SKIP, pei_data_usb2_port(pei_data, 6, 0x0080, 1, USB_OC_PIN_SKIP, USB_PORT_SKIP);
USB_PORT_SKIP);
/* P8: SD Card */ /* P8: SD Card */
pei_data_usb2_port(pei_data, 7, 0x0080, 1, USB_OC_PIN_SKIP, pei_data_usb2_port(pei_data, 7, 0x0080, 1, USB_OC_PIN_SKIP, USB_PORT_BACK_PANEL);
USB_PORT_BACK_PANEL);
/* P1: Right Side Port (USB3) */ /* P1: Right Side Port (USB3) */
pei_data_usb3_port(pei_data, 0, 1, USB_OC_PIN_SKIP, 0); pei_data_usb3_port(pei_data, 0, 1, USB_OC_PIN_SKIP, 0);