Browse Source

ARM: tegra: Enable IOMMU for display controllers on Tegra114

Add iommus properties to the device tree nodes for the two display
controllers found on Tegra114. This will allow the display controllers
to map physically non-contiguous buffers to I/O virtual contiguous
address spaces so that they can be used for scan-out.

Signed-off-by: Thierry Reding <treding@nvidia.com>
Thierry Reding 11 năm trước cách đây
mục cha
commit
32215e7160
1 tập tin đã thay đổi với 5 bổ sung0 xóa
  1. 5 0
      arch/arm/boot/dts/tegra114.dtsi

+ 5 - 0
arch/arm/boot/dts/tegra114.dtsi

@@ -1,5 +1,6 @@
 #include <dt-bindings/clock/tegra114-car.h>
 #include <dt-bindings/clock/tegra114-car.h>
 #include <dt-bindings/gpio/tegra-gpio.h>
 #include <dt-bindings/gpio/tegra-gpio.h>
+#include <dt-bindings/memory/tegra114-mc.h>
 #include <dt-bindings/pinctrl/pinctrl-tegra.h>
 #include <dt-bindings/pinctrl/pinctrl-tegra.h>
 #include <dt-bindings/interrupt-controller/arm-gic.h>
 #include <dt-bindings/interrupt-controller/arm-gic.h>
 
 
@@ -57,6 +58,8 @@
 			resets = <&tegra_car 27>;
 			resets = <&tegra_car 27>;
 			reset-names = "dc";
 			reset-names = "dc";
 
 
+			iommus = <&mc TEGRA_SWGROUP_DC>;
+
 			nvidia,head = <0>;
 			nvidia,head = <0>;
 
 
 			rgb {
 			rgb {
@@ -74,6 +77,8 @@
 			resets = <&tegra_car 26>;
 			resets = <&tegra_car 26>;
 			reset-names = "dc";
 			reset-names = "dc";
 
 
+			iommus = <&mc TEGRA_SWGROUP_DCB>;
+
 			nvidia,head = <1>;
 			nvidia,head = <1>;
 
 
 			rgb {
 			rgb {