arm64: tegra: Enable SMMU for XUSB host on Tegra186
authorNagarjuna Kristam <nkristam@nvidia.com>
Tue, 17 Sep 2019 06:56:44 +0000 (12:26 +0530)
committerThierry Reding <treding@nvidia.com>
Tue, 29 Oct 2019 19:30:06 +0000 (20:30 +0100)
Enabling the SMMU for XUSB host allows buffers to be mapped through the
ARM SMMU, which helps protecting the system from rogue memory accesses
by the XUSB host.

Signed-off-by: Nagarjuna Kristam <nkristam@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
arch/arm64/boot/dts/nvidia/tegra186.dtsi

index 47cd831..abdc81f 100644 (file)
                      <0x0 0x03538000 0x0 0x1000>;
                reg-names = "hcd", "fpci";
 
+               iommus = <&smmu TEGRA186_SID_XUSB_HOST>;
                interrupts = <GIC_SPI 163 IRQ_TYPE_LEVEL_HIGH>,
                             <GIC_SPI 164 IRQ_TYPE_LEVEL_HIGH>,
                             <GIC_SPI 167 IRQ_TYPE_LEVEL_HIGH>;