mb/*: Add consolidated USB port config for SNB+MRC boards
For each sandybridge boards with option to use MRC or native platform init code, add a copy of the board's USB port config, consolidated between both code paths, into the southbridge devicetree, using special values allocated for this consolidation. These get hooked up in a separate patch. Change-Id: I53efca3d29b3c5d4d5b7e3d6dc3e6ce6c34201e6 Signed-off-by: Keith Hui <buurin@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/81880 Reviewed-by: Patrick Rudolph <patrick.rudolph@9elements.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
parent
1acb3e118b
commit
51a57eb5ea
@ -12,6 +12,22 @@ chip northbridge/intel/sandybridge
|
||||
register "gen1_dec" = "0x000c0291"
|
||||
register "gen4_dec" = "0x0000ff29"
|
||||
register "pcie_port_coalesce" = "true"
|
||||
register "usb_port_config" = "{
|
||||
{1, 2, 0},
|
||||
{1, 2, 0},
|
||||
{1, 2, 1},
|
||||
{1, 2, 1},
|
||||
{1, 2, 2},
|
||||
{1, 2, 2},
|
||||
{1, 2, 3},
|
||||
{1, 2, 3},
|
||||
{1, 2, 4},
|
||||
{1, 2, 4},
|
||||
{1, 2, 6},
|
||||
{1, 2, 5},
|
||||
{0, 2, 5},
|
||||
{0, 2, 6}
|
||||
}"
|
||||
|
||||
device ref pcie_rp1 on end # PCIEX_16_3
|
||||
device ref pcie_rp2 on end # RTL8111F
|
||||
|
@ -69,6 +69,19 @@ chip northbridge/intel/sandybridge
|
||||
# Enable zero-based linear PCIe root port functions
|
||||
register "pcie_port_coalesce" = "true"
|
||||
|
||||
register "usb_port_config" = "{
|
||||
{1, 0, -1}, /* P0: Right USB 3.0 #1 (no OC) */
|
||||
{1, 0, -1}, /* P1: Right USB 3.0 #2 (no OC) */
|
||||
{1, 0, -1}, /* P2: Camera (no OC) */
|
||||
/* P3-P8: Empty */
|
||||
{0, 0, -1}, {0, 0, -1}, {0, 0, -1},
|
||||
{0, 0, -1}, {0, 0, -1}, {0, 0, -1},
|
||||
{1, 1, -1}, /* P9: Left USB 1 (no OC) */
|
||||
{1, 0, -1}, /* P10: Mini PCIe - WLAN / BT (no OC) */
|
||||
/* P11-P13: Empty */
|
||||
{0, 0, -1}, {0, 0, -1}, {0, 0, -1}
|
||||
}"
|
||||
|
||||
device ref xhci on end # USB 3.0 Controller
|
||||
device ref mei1 on end # Management Engine Interface 1
|
||||
device ref mei2 off end # Management Engine Interface 2
|
||||
|
@ -65,6 +65,23 @@ chip northbridge/intel/sandybridge
|
||||
# Enable zero-based linear PCIe root port functions
|
||||
register "pcie_port_coalesce" = "true"
|
||||
|
||||
register "usb_port_config" = "{
|
||||
{ 0, 0, -1 }, /* P0: Empty */
|
||||
{ 1, 0, 0 }, /* P1: Left USB 1 (OC0) */
|
||||
{ 1, 0, 1 }, /* P2: Left USB 2 (OC1) */
|
||||
{ 1, 0, -1 }, /* P3: SDCARD (no OC) */
|
||||
{ 0, 0, -1 }, /* P4: Empty */
|
||||
{ 1, 0, -1 }, /* P5: WWAN (no OC) */
|
||||
{ 0, 0, -1 }, /* P6: Empty */
|
||||
{ 0, 0, -1 }, /* P7: Empty */
|
||||
{ 1, 0, -1 }, /* P8: Camera (no OC) */
|
||||
{ 1, 0, -1 }, /* P9: Bluetooth (no OC) */
|
||||
{ 0, 0, -1 }, /* P10: Empty */
|
||||
{ 0, 0, -1 }, /* P11: Empty */
|
||||
{ 0, 0, -1 }, /* P12: Empty */
|
||||
{ 0, 0, -1 }, /* P13: Empty */
|
||||
}"
|
||||
|
||||
device ref mei1 on end # Management Engine Interface 1
|
||||
device ref mei2 off end # Management Engine Interface 2
|
||||
device ref me_ide_r off end # Management Engine IDE-R
|
||||
|
@ -56,6 +56,22 @@ chip northbridge/intel/sandybridge
|
||||
|
||||
register "sata_port_map" = "0x1"
|
||||
|
||||
register "usb_port_config" = "{
|
||||
{0, 0, -1}, /* P0: Empty */
|
||||
{1, 0, 0}, /* P1: Left USB 1 (OC0) */
|
||||
{1, 0, 1}, /* P2: Left USB 2 (OC1) */
|
||||
{1, 0, 1}, /* P3: Left USB 3 (OC1) */
|
||||
{0, 0, -1}, /* P4-P7: Empty */
|
||||
{0, 0, -1},
|
||||
{0, 0, -1},
|
||||
{0, 0, -1},
|
||||
/* Empty and onboard Ports 8-13, set to un-used pin OC4 */
|
||||
{1, 0, -1}, /* P8: MiniPCIe (WLAN) (no OC) */
|
||||
{0, 0, -1}, /* P9: Empty */
|
||||
{1, 0, -1}, /* P10: Camera (no OC) */
|
||||
{0, 0, -1}, {0, 0, -1}, {0, 0, -1}
|
||||
}"
|
||||
|
||||
# EC range is 0xFD60 (EC_IO) and 0x68/0x6C
|
||||
register "gen1_dec" = "0x0004fd61"
|
||||
register "gen2_dec" = "0x00040069"
|
||||
|
@ -79,6 +79,23 @@ chip northbridge/intel/sandybridge
|
||||
# Enable zero-based linear PCIe root port functions
|
||||
register "pcie_port_coalesce" = "true"
|
||||
|
||||
register "usb_port_config" = "{
|
||||
{1, 0, 0}, /* P0: USB 3.0 1 (OC0) */
|
||||
{1, 0, 0}, /* P1: USB 3.0 2 (OC0) */
|
||||
{0, 0, 0}, /* P2: Empty */
|
||||
{1, 0, -1}, /* P3: Camera (no OC) */
|
||||
{1, 0, -1}, /* P4: WLAN (no OC) */
|
||||
{1, 0, -1}, /* P5: WWAN (no OC) */
|
||||
{0, 0, 0}, /* P6: Empty */
|
||||
{0, 0, 0}, /* P7: Empty */
|
||||
{0, 0, 0}, /* P8: Empty */
|
||||
{1, 0, 4}, /* P9: USB 2.0 (AUO4) (OC4) */
|
||||
{0, 0, 0}, /* P10: Empty */
|
||||
{0, 0, 0}, /* P11: Empty */
|
||||
{0, 0, 0}, /* P12: Empty */
|
||||
{1, 0, -1}, /* P13: Bluetooth (no OC) */
|
||||
}"
|
||||
|
||||
device ref xhci on end # USB 3.0 Controller
|
||||
device ref mei1 on end # Management Engine Interface 1
|
||||
device ref mei2 off end # Management Engine Interface 2
|
||||
|
@ -43,6 +43,23 @@ chip northbridge/intel/sandybridge
|
||||
|
||||
register "gen1_dec" = "0x00fc0a01" # SuperIO @0xa00-0xaff
|
||||
|
||||
register "usb_port_config" = "{
|
||||
{1, 1, 0}, /* back, towards HDMI plugs */
|
||||
{1, 1, 0}, /* back, towards power plug */
|
||||
{1, 1, 1}, /* half-width miniPCIe */
|
||||
{1, 1, 1}, /* full-width miniPCIe */
|
||||
{1, 1, 2}, /* front-panel header */
|
||||
{1, 1, 2}, /* front-panel header */
|
||||
{1, 1, 3}, /* front connector */
|
||||
{0, 1, 3}, /* not available x7 */
|
||||
{0, 1, 4},
|
||||
{0, 1, 4},
|
||||
{0, 1, 5},
|
||||
{0, 1, 5},
|
||||
{0, 1, 6},
|
||||
{0, 1, 6}
|
||||
}"
|
||||
|
||||
device ref xhci off end # USB xHCI
|
||||
device ref mei1 on end # Management Engine Interface 1
|
||||
device ref mei2 off end # Management Engine Interface 2
|
||||
|
@ -58,6 +58,22 @@ chip northbridge/intel/sandybridge
|
||||
register "gen2_dec" = "0x000c0181"
|
||||
# SuperIO range is 0x700-0x73f
|
||||
register "gen3_dec" = "0x003c0701"
|
||||
register "usb_port_config" = "{
|
||||
{ 1, 0, 0 }, /* P0: Front port (OC0) */
|
||||
{ 1, 0, 1 }, /* P1: Back port (OC1) */
|
||||
{ 1, 0, -1 }, /* P2: MINIPCIE1 (no OC) */
|
||||
{ 1, 0, -1 }, /* P3: MMC (no OC) */
|
||||
{ 1, 0, 2 }, /* P4: Front port (OC2) */
|
||||
{ 0, 0, -1 }, /* P5: Empty */
|
||||
{ 0, 0, -1 }, /* P6: Empty */
|
||||
{ 0, 0, -1 }, /* P7: Empty */
|
||||
{ 1, 0, 4 }, /* P8: Back port (OC4) */
|
||||
{ 1, 0, -1 }, /* P9: MINIPCIE3 (no OC) */
|
||||
{ 1, 0, -1 }, /* P10: BLUETOOTH (no OC) */
|
||||
{ 0, 0, -1 }, /* P11: Empty */
|
||||
{ 1, 0, 6 }, /* P12: Back port (OC6) */
|
||||
{ 1, 0, 5 }, /* P13: Back port (OC5) */
|
||||
}"
|
||||
|
||||
device ref mei1 on end # Management Engine Interface 1
|
||||
device ref mei2 off end # Management Engine Interface 2
|
||||
|
@ -55,6 +55,22 @@ chip northbridge/intel/sandybridge
|
||||
|
||||
register "xhci_switchable_ports" = "0x0f"
|
||||
register "superspeed_capable_ports" = "0x0f"
|
||||
register "usb_port_config" = "{
|
||||
{ 1, 0, 0 }, /* P0: lower left USB 3.0 (OC0) */
|
||||
{ 1, 0, 0 }, /* P1: upper left USB 3.0 (OC0) */
|
||||
{ 1, 0, 0 }, /* P2: lower right USB 3.0 (OC0) */
|
||||
{ 1, 0, 0 }, /* P3: upper right USB 3.0 (OC0) */
|
||||
{ 1, 0, 0 }, /* P4: lower USB 2.0 (OC0) */
|
||||
{ 1, 0, 0 }, /* P5: upper USB 2.0 (OC0) */
|
||||
{ 1, 0, 0 }, /* P6: front panel USB 2.0 (OC0) */
|
||||
{ 1, 0, 0 }, /* P7: front panel USB 2.0 (OC0) */
|
||||
{ 1, 0, 4 }, /* P8: internal USB 2.0 (OC4) */
|
||||
{ 1, 0, 4 }, /* P9: internal USB 2.0 (OC4) */
|
||||
{ 1, 0, 4 }, /* P10: internal USB 2.0 (OC4) */
|
||||
{ 1, 0, 4 }, /* P11: internal USB 2.0 (OC4) */
|
||||
{ 1, 0, 4 }, /* P12: internal USB 2.0 (OC4) */
|
||||
{ 1, 0, 4 }, /* P13: internal USB 2.0 (OC4) */
|
||||
}"
|
||||
|
||||
device ref xhci on end # USB 3.0 Controller
|
||||
device ref mei1 on end # Management Engine Interface 1
|
||||
|
@ -1,6 +1,23 @@
|
||||
chip northbridge/intel/sandybridge
|
||||
device domain 0 on
|
||||
chip southbridge/intel/bd82x6x # Intel Series 6 Cougar Point PCH
|
||||
register "usb_port_config" = "{
|
||||
{1, 0, 0 },
|
||||
{1, 1, 1 },
|
||||
{1, 1, 3 },
|
||||
{1, 1, 3 },
|
||||
{1, 1, -1},
|
||||
{1, 1, -1},
|
||||
{1, 0, 2 },
|
||||
{1, 0, 2 },
|
||||
{1, 1, 6 },
|
||||
{1, 1, 5 },
|
||||
{1, 1, 6 },
|
||||
{1, 1, 6 },
|
||||
{1, 1, 7 },
|
||||
{1, 1, 6 },
|
||||
}"
|
||||
|
||||
device ref lpc on
|
||||
chip ec/lenovo/h8
|
||||
device pnp ff.2 on end # dummy
|
||||
|
@ -69,10 +69,25 @@ chip northbridge/intel/sandybridge
|
||||
register "pcie_port_coalesce" = "false"
|
||||
register "pcie_hotplug_map" = "{ 0, 0, 0, 1, 0, 0, 0, 0 }"
|
||||
|
||||
|
||||
register "xhci_overcurrent_mapping" = "0x00080401"
|
||||
register "xhci_switchable_ports" = "0x0f"
|
||||
register "superspeed_capable_ports" = "0x0f"
|
||||
register "usb_port_config" = "{
|
||||
{ 1, 0, 0 }, /* P00: 1st USB3 (OC #0) */
|
||||
{ 1, 0, 4 }, /* P01: 2nd USB3 (OC #4) */
|
||||
{ 1, 1, 1 }, /* P02: 1st Multibay USB3 (OC #1) */
|
||||
{ 1, 1, 2 }, /* P03: 2nd Multibay USB3 (OC #2) */
|
||||
{ 1, 0, 8 }, /* P04: MiniPCIe 1 USB2 (no OC) */
|
||||
{ 1, 0, 8 }, /* P05: MiniPCIe 2 USB2 (no OC) */
|
||||
{ 1, 0, 8 }, /* P06: MiniPCIe 3 USB2 (no OC) */
|
||||
{ 1, 0, 8 }, /* P07: GPS USB2 (no OC) */
|
||||
{ 1, 0, 8 }, /* P08: MiniPCIe 4 USB2 (no OC) */
|
||||
{ 1, 0, 3 }, /* P09: Express Card USB2 (OC #3) */
|
||||
{ 1, 0, 8 }, /* P10: SD card reader USB2 (no OC) */
|
||||
{ 1, 0, 8 }, /* P11: Sensors Hub? USB2 (no OC) */
|
||||
{ 1, 0, 8 }, /* P12: Touch Screen USB2 (no OC) */
|
||||
{ 1, 0, 5 }, /* P13: reserved? USB2 (OC #5) */
|
||||
}"
|
||||
|
||||
register "spi_uvscc" = "0x2005"
|
||||
register "spi_lvscc" = "0x2005"
|
||||
|
@ -73,10 +73,25 @@ chip northbridge/intel/sandybridge
|
||||
register "pcie_port_coalesce" = "false"
|
||||
register "pcie_hotplug_map" = "{ 0, 0, 0, 0, 0, 0, 1, 1 }"
|
||||
|
||||
|
||||
register "xhci_overcurrent_mapping" = "0x00000c03"
|
||||
register "xhci_switchable_ports" = "0x0f"
|
||||
register "superspeed_capable_ports" = "0x0f"
|
||||
register "usb_port_config" = "{
|
||||
{ 1, 1, 0 }, /* P00: 1st (left) USB3 (OC #0) */
|
||||
{ 1, 1, 0 }, /* P01: 2nd (left) USB3 (OC #0) */
|
||||
{ 1, 1, 1 }, /* P02: 1st Multibay USB3 (OC #1) */
|
||||
{ 1, 1, 1 }, /* P03: 2nd Multibay USB3 (OC #1) */
|
||||
{ 1, 0, 8 }, /* P04: MiniPCIe 1 USB2 (no OC) */
|
||||
{ 1, 0, 8 }, /* P05: MiniPCIe 2 USB2 (no OC) */
|
||||
{ 1, 0, 8 }, /* P06: USB Hub x4 USB2 (no OC) */
|
||||
{ 1, 0, 8 }, /* P07: MiniPCIe 4 USB2 (no OC) */
|
||||
{ 1, 1, 8 }, /* P08: SD card reader USB2 (no OC) */
|
||||
{ 1, 1, 4 }, /* P09: 3rd (right) USB2 (OC #4) */
|
||||
{ 1, 0, 5 }, /* P10: 4th (right) USB2 (OC #5) */
|
||||
{ 1, 0, 8 }, /* P11: 3rd Multibay USB2 (no OC) */
|
||||
{ 1, 1, 8 }, /* P12: misc internal USB2 (no OC) */
|
||||
{ 1, 1, 6 }, /* P13: misc internal USB2 (OC #6) */
|
||||
}"
|
||||
|
||||
register "spi_uvscc" = "0x2005"
|
||||
register "spi_lvscc" = "0x2005"
|
||||
|
@ -56,6 +56,22 @@ chip northbridge/intel/sandybridge
|
||||
register "gen1_dec" = "0x003c0a01"
|
||||
register "gen2_dec" = "0x003c0b01"
|
||||
register "gen3_dec" = "0x00fc1601"
|
||||
register "usb_port_config" = "{
|
||||
{ 1, 1, 0 }, /* P0: Port 0 (OC0) */
|
||||
{ 1, 1, 1 }, /* P1: Port 1 (OC1) */
|
||||
{ 1, 0, -1 }, /* P2: MINIPCIE1 (no OC) */
|
||||
{ 1, 0, -1 }, /* P3: MMC (no OC) */
|
||||
{ 0, 0, -1 }, /* P4: Empty */
|
||||
{ 0, 0, -1 }, /* P5: Empty */
|
||||
{ 0, 0, -1 }, /* P6: Empty */
|
||||
{ 0, 0, -1 }, /* P7: Empty */
|
||||
{ 1, 0, -1 }, /* P8: MINIPCIE2 (no OC) */
|
||||
{ 0, 0, -1 }, /* P9: Empty */
|
||||
{ 0, 0, -1 }, /* P10: Empty */
|
||||
{ 1, 0, -1 }, /* P11: Camera (no OC) */
|
||||
{ 0, 0, -1 }, /* P12-13: Empty */
|
||||
{ 0, 0, -1 }
|
||||
}"
|
||||
|
||||
device ref mei1 on end # Management Engine Interface 1
|
||||
device ref mei2 off end # Management Engine Interface 2
|
||||
|
@ -54,6 +54,23 @@ chip northbridge/intel/sandybridge
|
||||
# SuperIO range is 0x700-0x73f
|
||||
register "gen2_dec" = "0x003c0701"
|
||||
|
||||
register "usb_port_config" = "{
|
||||
{ 1, 1, 0 }, /* P0: Front port (OC0) */
|
||||
{ 1, 0, 1 }, /* P1: Back port (OC1) */
|
||||
{ 1, 0, -1 }, /* P2: MINIPCIE1 (no OC) */
|
||||
{ 1, 0, -1 }, /* P3: MMC (no OC) */
|
||||
{ 1, 1, 2 }, /* P4: Front port (OC2) */
|
||||
{ 0, 0, -1 }, /* P5: Empty */
|
||||
{ 0, 0, -1 }, /* P6: Empty */
|
||||
{ 0, 0, -1 }, /* P7: Empty */
|
||||
{ 1, 0, 4 }, /* P8: Back port (OC4) */
|
||||
{ 1, 0, -1 }, /* P9: MINIPCIE3 (no OC) */
|
||||
{ 1, 0, -1 }, /* P10: BLUETOOTH (no OC) */
|
||||
{ 0, 0, -1 }, /* P11: Empty */
|
||||
{ 1, 0, 6 }, /* P12: Back port (OC6) */
|
||||
{ 1, 0, 5 }, /* P13: Back port (OC5) */
|
||||
}"
|
||||
|
||||
device ref mei1 on end # Management Engine Interface 1
|
||||
device ref mei2 off end # Management Engine Interface 2
|
||||
device ref me_ide_r off end # Management Engine IDE-R
|
||||
|
Loading…
x
Reference in New Issue
Block a user