summaryrefslogtreecommitdiff
path: root/src/mainboard/amd/birman
diff options
context:
space:
mode:
authorFelix Held <felix-coreboot@felixheld.de>2024-03-05 18:29:01 +0100
committerFelix Held <felix-coreboot@felixheld.de>2024-05-15 15:01:05 +0000
commitd7158c81495e6fd7ae766a08669184798008308f (patch)
tree94ed85a88cc4ec9d5a491726dca8e32383015f3a /src/mainboard/amd/birman
parent7728ed3ea2139908ab8e9a0c43b6ccdf7b1020d6 (diff)
mb/amd/birman/devicetree_phoenix_opensil: add stub MPIO chips
Add the stub MPIO chips that contain the PCIe engine configuration for the external PCIe interfaces to the devicetree. Birman's port_descriptors_phoenix.c was used as a reference. The static configuration in the devicetree assumes that the default WLAN0_WWAN0 is selected; for the other cases we'll still need to fix up things accordingly in the mutable devicetree. The WLAN01 and WWAN01 cases still need to be handled in a follow-up patch. Since openSIL currently doesn't use the info from the gpio_group struct element, but deasserts both PCIe reset pins GPIO 26 and 27, the gpio_group isn't specified in the chip configuration in the devicetree. Signed-off-by: Felix Held <felix-coreboot@felixheld.de> Change-Id: Icabe60322d46c1195284dd77ec39f9d143e3d2cb Reviewed-on: https://review.coreboot.org/c/coreboot/+/81101 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Matt DeVillier <matt.devillier@amd.corp-partner.google.com>
Diffstat (limited to 'src/mainboard/amd/birman')
-rw-r--r--src/mainboard/amd/birman/devicetree_phoenix_opensil.cb84
1 files changed, 67 insertions, 17 deletions
diff --git a/src/mainboard/amd/birman/devicetree_phoenix_opensil.cb b/src/mainboard/amd/birman/devicetree_phoenix_opensil.cb
index 58cead583e..d1b5e11a38 100644
--- a/src/mainboard/amd/birman/devicetree_phoenix_opensil.cb
+++ b/src/mainboard/amd/birman/devicetree_phoenix_opensil.cb
@@ -43,25 +43,75 @@ chip soc/amd/phoenix
device domain 0 on
device ref iommu on end
- device ref gpp_bridge_1_1 on end # MXM
- device ref gpp_bridge_1_2 on
- # Required so the NVMe gets placed into D3 when entering S0i3.
- chip drivers/pcie/rtd3/device
- register "name" = ""NVME""
- device pci 00.0 on end
+ chip vendorcode/amd/opensil/chip/mpio
+ register "type" = "IFTYPE_PCIE"
+ register "start_lane" = "0"
+ register "end_lane" = "7"
+ register "aspm" = "ASPM_L1"
+ register "clk_req" = "CLK_REQ0"
+ # register "gpio_group" is currently not used
+ device ref gpp_bridge_1_1 on end # MXM
+ end
+ chip vendorcode/amd/opensil/chip/mpio
+ register "type" = "IFTYPE_PCIE"
+ register "start_lane" = "8"
+ register "end_lane" = "11"
+ register "aspm" = "ASPM_L1"
+ register "clk_req" = "CLK_REQ1"
+ device ref gpp_bridge_1_2 on # NVMe SSD1
+ # Required so the NVMe gets placed into D3 when entering S0i3.
+ chip drivers/pcie/rtd3/device
+ register "name" = ""NVME""
+ device pci 00.0 on end
+ end
end
- end # NVMe SSD1
- device ref gpp_bridge_1_3 on end # GBE
- device ref gpp_bridge_2_1 on end # SD
- device ref gpp_bridge_2_2 on end # WWAN
- device ref gpp_bridge_2_3 on end # WIFI
- device ref gpp_bridge_2_4 on
- # Required so the NVMe gets placed into D3 when entering S0i3.
- chip drivers/pcie/rtd3/device
- register "name" = ""NVME""
- device pci 00.0 on end
+ end
+ chip vendorcode/amd/opensil/chip/mpio
+ register "type" = "IFTYPE_PCIE"
+ register "start_lane" = "12"
+ register "end_lane" = "12"
+ register "aspm" = "ASPM_DISABLED"
+ register "clk_req" = "CLK_REQ6"
+ device ref gpp_bridge_1_3 on end # GBE
+ end
+ chip vendorcode/amd/opensil/chip/mpio
+ register "type" = "IFTYPE_PCIE"
+ register "start_lane" = "13"
+ register "end_lane" = "13"
+ register "aspm" = "ASPM_DISABLED"
+ register "clk_req" = "CLK_REQ5"
+ device ref gpp_bridge_2_1 on end # SD
+ end
+ chip vendorcode/amd/opensil/chip/mpio
+ register "type" = "IFTYPE_PCIE"
+ register "start_lane" = "14"
+ register "end_lane" = "14"
+ register "aspm" = "ASPM_DISABLED"
+ register "clk_req" = "CLK_REQ4"
+ device ref gpp_bridge_2_2 on end # WWAN
+ end
+ chip vendorcode/amd/opensil/chip/mpio
+ register "type" = "IFTYPE_PCIE"
+ register "start_lane" = "15"
+ register "end_lane" = "15"
+ register "aspm" = "ASPM_DISABLED"
+ register "clk_req" = "CLK_REQ3"
+ device ref gpp_bridge_2_3 on end # WIFI
+ end
+ chip vendorcode/amd/opensil/chip/mpio
+ register "type" = "IFTYPE_PCIE"
+ register "start_lane" = "16"
+ register "end_lane" = "19"
+ register "aspm" = "ASPM_DISABLED"
+ register "clk_req" = "CLK_REQ2"
+ device ref gpp_bridge_2_4 on # NVMe SSD0
+ # Required so the NVMe gets placed into D3 when entering S0i3.
+ chip drivers/pcie/rtd3/device
+ register "name" = ""NVME""
+ device pci 00.0 on end
+ end
end
- end # NVMe SSD0
+ end
device ref gpp_bridge_a on # Internal GPP Bridge 0 to Bus A
device ref gfx on end # Internal GPU (GFX)
device ref gfx_hda on end # Display HD Audio Controller (GFXAZ)