rk: iommu: enable iommu by default on rk33xx platform
authorCMY <cmy@rock-chips.com>
Mon, 13 Apr 2015 01:26:48 +0000 (09:26 +0800)
committerCMY <cmy@rock-chips.com>
Mon, 13 Apr 2015 01:30:50 +0000 (09:30 +0800)
Signed-off-by: CMY <cmy@rock-chips.com>
arch/arm64/boot/dts/rk3368-box.dts
arch/arm64/boot/dts/rk3368-p9_818.dts
arch/arm64/boot/dts/rk3368-tb_8846.dts
arch/arm64/boot/dts/rk3368.dtsi

index ddf88f5fb31560f18bf1216b0f1b0f1fe459d33b..d09b0b0ae583fbd9aa50cd949c042f17f4bc9368 100755 (executable)
        pinctrl-names = "default", "gpio";
        pinctrl-0 = <&lcdc_lcdc>;
        pinctrl-1 = <&lcdc_gpio>;
-       rockchip,iommu-enabled = <1>;
        power_ctr: power_ctr {
                rockchip,debug = <0>;
                /*lcd_en:lcd_en {
        };
 };
 
-
-&vpu {
-       iommu_enabled = <1>;
-};
-
-&hevc {
-       iommu_enabled = <1>;
-};
-
-&iep {
-       iommu_enabled = <1>;
-};
-
-&isp {
-       rockchip,isp,iommu_enable = <1>;
-};
-
 &hdmi {
        status = "okay";
        rockchips,hdmi_audio_source = <0>;
 };
 
 &ion_cma {
-       //reg = <0x00000000 0x28000000>; /* 640MB */
-            reg = <0x00000000 0x0>; 
+       reg = <0x00000000 0x00000000>; /* 0MB */
 };
 
 /*
index 01d62ac0c2b6bc73d2e6d37b653f0bbc19370536..ca029907778d0ddf4b977da8f3855ec3818352db 100755 (executable)
 };
 
 &ion_cma {
-       reg = <0x00000000 0x28000000>; /* 640MB */
+       reg = <0x00000000 0x00000000>; /* 0MB */
 };
 
index 9e6b5c589a1519270213ae537cedfd57bf386a4f..8f3eb6fd52c423851afca3f65515eb9a5dab68ee 100755 (executable)
@@ -1051,7 +1051,7 @@ rk818,support_dc_chg = <1>;/*1:dc chg; 0:usb chg*/
 
 
 &ion_cma {
-       reg = <0x00000000 0x28000000>; /* 640MB */
+       reg = <0x00000000 0x00000000>; /* 0MB */
 };
 
 &rk3368_cif_sensor{
index 6725dea8102b88b1d7238c84770463787be8d870..f9e36c5eaab8325c6f5a29a2ed03c898dedefefb 100755 (executable)
                 rockchip,cru = <&cru>;
                 rockchip,prop = <PRMRY>;
                 rockchip,pwr18 = <0>;
-                rockchip,iommu-enabled = <0>;
+                rockchip,iommu-enabled = <1>;
                 reg = <0x0 0xff930000 0x0 0x10000>;
                 interrupts = <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>;
                /*pinctrl-names = "default", "gpio";
                ion_cma: rockchip,ion-heap@4 { /* CMA HEAP */
                        compatible = "rockchip,ion-heap";
                        rockchip,ion_heap = <4>;
-                       reg = <0x00000000 0x08000000>; /* 512MB */
+                       reg = <0x00000000 0x00000000>; /* 0MB */
                };
                rockchip,ion-heap@0 { /* VMALLOC HEAP */
                        compatible = "rockchip,ion-heap";
 
        vpu: vpu_service {
                compatible = "rockchip,vpu_sub";
-               iommu_enabled = <0>;
+               iommu_enabled = <1>;
                interrupts = <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>,
                             <GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>;
                interrupt-names = "irq_enc", "irq_dec";
 
        hevc: hevc_service {
                compatible = "rockchip,hevc_sub";
-               iommu_enabled = <0>;
+               iommu_enabled = <1>;
                interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>;
                interrupt-names = "irq_dec";
                dev_mode = <1>;
 
        iep: iep@ff900000 {
                compatible = "rockchip,iep";
-               iommu_enabled = <0>;
+               iommu_enabled = <1>;
                reg = <0x0 0xff900000 0x0 0x800>;
                interrupts = <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>;
                clocks = <&clk_gates16 2>, <&clk_gates16 3>;
                dbgname = "vpu";
                compatible = "rockchip,vpu_mmu";
                reg = <0x0 0xff9a0800 0x0 0x100>;                    /*need to fix*/
-               interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>;       /*need to fix*/
-               interrupt-names = "vpu_mmu";
+               interrupts = <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>,        /*need to fix*/
+                            <GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>;
+               interrupt-names = "vepu_mmu", "vdpu_mmu";
        };
 
        rockchip_suspend {
                rockchip,grf = <&grf>;
                rockchip,cru = <&cru>;
                rockchip,gpios = <&gpio3 GPIO_C4 GPIO_ACTIVE_HIGH>;
-               rockchip,isp,iommu_enable = <0>;
+               rockchip,isp,iommu_enable = <1>;
                status = "okay";
        };