rk3288 lcdc: backup mmu reg when use iommu
authorhjc <hjc@rock-chips.com>
Thu, 24 Apr 2014 05:52:08 +0000 (13:52 +0800)
committerhjc <hjc@rock-chips.com>
Thu, 24 Apr 2014 10:28:27 +0000 (18:28 +0800)
drivers/video/rockchip/lcdc/rk3288_lcdc.c

index 9ef386145ce529aee4b3f5f11e787e32f9524937..627d5d2ffbd1691239cc43998e9daf2975073a12 100755 (executable)
@@ -223,7 +223,11 @@ static int rk3288_lcdc_pre_init(struct rk_lcdc_driver *dev_drv)
        rk3288_lcdc_clk_enable(lcdc_dev);
 
        /*backup reg config at uboot*/
-       for (i = 0; i < 0x1a0;) {
+#ifdef CONFIG_ROCKCHIP_IOMMU
+               for (i = 0; i < 0x330;) {
+#else
+               for (i = 0; i < 0x1a0;) {
+#endif
                lcdc_readl(lcdc_dev,i);
                i += 4;
        }