projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
12c4ae3
)
rk3288 lcdc: backup mmu reg when use iommu
author
hjc
<hjc@rock-chips.com>
Thu, 24 Apr 2014 05:52:08 +0000
(13:52 +0800)
committer
hjc
<hjc@rock-chips.com>
Thu, 24 Apr 2014 10:28:27 +0000
(18:28 +0800)
drivers/video/rockchip/lcdc/rk3288_lcdc.c
patch
|
blob
|
history
diff --git
a/drivers/video/rockchip/lcdc/rk3288_lcdc.c
b/drivers/video/rockchip/lcdc/rk3288_lcdc.c
index 9ef386145ce529aee4b3f5f11e787e32f9524937..627d5d2ffbd1691239cc43998e9daf2975073a12 100755
(executable)
--- 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;
}