mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-10 04:48:04 +09:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user