rk_fb: fix kernel logo display

If we use origin kernel logo config, default path would not enable
iommu, we maybe get a black display.

so just enable iommu when we do fb_pan_display.

Signed-off-by: Mark Yao <mark.yao@rock-chips.com>
This commit is contained in:
Mark Yao
2015-03-26 14:15:21 +08:00
parent 21641b5251
commit 959b2148ae

View File

@@ -1383,6 +1383,12 @@ static int rk_fb_pan_display(struct fb_var_screeninfo *var,
if (likely((var->reserved[3] & 0x1) == 0))
dev_drv->ops->cfg_done(dev_drv);
if (dev_drv->iommu_enabled) {
rk_fb_poll_wait_frame_complete();
if (dev_drv->ops->mmu_en)
dev_drv->ops->mmu_en(dev_drv);
}
return 0;
}