From: hjc Date: Thu, 24 Apr 2014 05:52:08 +0000 (+0800) Subject: rk3288 lcdc: backup mmu reg when use iommu X-Git-Tag: firefly_0821_release~5438 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=d89d037d9f1bfee44aa146115391df37156f79c3;p=firefly-linux-kernel-4.4.55.git rk3288 lcdc: backup mmu reg when use iommu --- diff --git a/drivers/video/rockchip/lcdc/rk3288_lcdc.c b/drivers/video/rockchip/lcdc/rk3288_lcdc.c index 9ef386145ce5..627d5d2ffbd1 100755 --- a/drivers/video/rockchip/lcdc/rk3288_lcdc.c +++ b/drivers/video/rockchip/lcdc/rk3288_lcdc.c @@ -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; }