Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 51c534ae authored by Siddartha Mohanadoss's avatar Siddartha Mohanadoss
Browse files

ARM: dts: msm: Add PCIe switch driver for sdxprairie



Use the errata property to pass the corresponding
configuration to be run on the diode switch connected
to the PCIe root port. The errata programs the corresponding
port based on the bus, device and function of the switch port.
Update the IOMMU SID to reflect the change in ordering due
to the addition of the switch. The end point devices have
their own PCIe IOMMU SID group to avoid conflicts with each other.

Change-Id: Iac6bc0f351dbac9f26a859a382f27ad407a0cf8d
Signed-off-by: default avatarSiddartha Mohanadoss <smohanad@codeaurora.org>
parent 1f5bb233
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -209,7 +209,9 @@
			<0x100 &apps_smmu 0x0201 0x1>,
			<0x200 &apps_smmu 0x0202 0x1>,
			<0x300 &apps_smmu 0x0203 0x1>,
			<0x400 &apps_smmu 0x0204 0x1>;
			<0x400 &apps_smmu 0x0204 0x1>,
			<0x208 &apps_smmu 0x0205 0x1>,
			<0x210 &apps_smmu 0x0206 0x1>;

		qcom,msm-bus,name = "pcie0";
		qcom,msm-bus,num-cases = <2>;
@@ -252,17 +254,20 @@
			pcie0_bus1_dev0_fn0: pcie0_bus1_dev0_fn0 {
				reg = <0 0 0 0 0>;
				pci-ids = "12d8:b304";
				errata = <0>;

				/* BDF 2.1.0 */
				pcie0_bus2_dev1_fn0: pcie0_bus2_dev1_fn0 {
					reg = <0x800 0 0 0 0>;
					pci-ids = "12d8:b304";
					errata = <1>;
				};

				/* BDF 2.2.0 */
				pcie0_bus2_dev2_fn0: pcie0_bus2_dev2_fn0 {
					reg = <0x1000 0 0 0 0>;
					pci-ids = "12d8:b304";
					errata = <2>;
				};
			};
		};