From ad5ae9748644e16522b034a9a3ec5818cc10ec48 Mon Sep 17 00:00:00 2001 From: hjc Date: Thu, 26 Feb 2015 18:27:40 +0800 Subject: [PATCH] rk fb: if uboot-logo-on set 1, open iommu when iommu en Signed-off-by: hjc --- drivers/video/rockchip/rk_fb.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/video/rockchip/rk_fb.c b/drivers/video/rockchip/rk_fb.c index 6fee0df9a27b..d9fc6ebdb787 100755 --- a/drivers/video/rockchip/rk_fb.c +++ b/drivers/video/rockchip/rk_fb.c @@ -3810,6 +3810,12 @@ int rk_fb_register(struct rk_lcdc_driver *dev_drv, freed_index = 0; } return 0; + } else { + if (dev_drv->iommu_enabled) { + if (dev_drv->ops->mmu_en) + dev_drv->ops->mmu_en(dev_drv); + freed_index = 0; + } } #if defined(CONFIG_LOGO) main_fbi->fbops->fb_set_par(main_fbi); -- 2.34.1