rk3288 lcdc: backup mmu reg when use iommu

This commit is contained in:
hjc
2014-04-24 13:52:08 +08:00
parent 12c4ae3031
commit d89d037d9f

View File

@@ -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;
}