mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
Additional BDF to SID mappings are needed if a switch and mutliple endpoints are connected to PCIe root complex. Expand iommu-map for PCIe on sdxprarie to support such a usecase. Change-Id: I396c535af617c413962049c26209d6ecf30628c5
42 lines
821 B
Devicetree
42 lines
821 B
Devicetree
#include "sdxlemur-mtp-mbb.dtsi"
|
|
|
|
&soc {
|
|
|
|
};
|
|
|
|
&pcie0 {
|
|
iommu-map = <0x0 &apps_smmu 0x0200 0x1>,
|
|
<0x100 &apps_smmu 0x0201 0x1>,
|
|
<0x208 &apps_smmu 0x0202 0x1>,
|
|
<0x210 &apps_smmu 0x0203 0x1>,
|
|
<0x218 &apps_smmu 0x0204 0x1>,
|
|
<0x300 &apps_smmu 0x0207 0x1>,
|
|
<0x400 &apps_smmu 0x0208 0x1>,
|
|
<0x500 &apps_smmu 0x020C 0x1>,
|
|
<0x501 &apps_smmu 0x020E 0x1>;
|
|
};
|
|
|
|
&pcie0_rp {
|
|
#address-cells = <5>;
|
|
#size-cells = <0>;
|
|
|
|
/* BDF 1.0.0 */
|
|
pcie0_bus1_dev0_fn0: pcie0_bus1_dev0_fn0 {
|
|
reg = <0 0 0 0 0>;
|
|
|
|
/* BDF 2.1.0 */
|
|
pcie0_bus2_dev1_fn0: pcie0_bus2_dev1_fn0 {
|
|
reg = <0x800 0x0 0x0 0x0 0x0>;
|
|
};
|
|
|
|
/* BDF 2.2.0 */
|
|
pcie0_bus2_dev2_fn0: pcie0_bus2_dev2_fn0 {
|
|
reg = <0x1000 0x0 0x0 0x0 0x0>;
|
|
};
|
|
|
|
/* BDF 2.3.0 */
|
|
pcie0_bus2_dev3_fn0: pcie0_bus2_dev3_fn0 {
|
|
reg = <0x1800 0x0 0x0 0x0 0x0>;
|
|
};
|
|
};
|
|
};
|