Platform: RK3288
OS: Android 5.1.1
Kernel: v3.10.0
需求:
切割屏目前在市面中应用越来越多,例如1920x540就是1920x1080切割,点屏屏参直接采用1080的方式即可点亮,但是UI要适配。
路径:/kernel/drivers/video/rockchip/rk_fb.c
index a0f2e03..446c156 100755
--- a/drivers/video/rockchip/rk_fb.c
+++ b/drivers/video/rockchip/rk_fb.c
@@ -4121,6 +4121,8 @@ int rk_fb_register(struct rk_lcdc_driver *dev_drv,fbi->fix = def_fix;sprintf(fbi->fix.id, "fb%d", rk_fb->num_fb);fb_videomode_to_var(&fbi->var, &dev_drv->cur_screen->mode);
+ fbi->var.xres = 1920;
+ fbi->var.yres = 540;fbi->var.grayscale |=(fbi->var.xres << 8) + (fbi->var.yres << 20);#if defined(CONFIG_LOGO_LINUX_BMP)
原理:
---底层不清楚--
先做个笔记,后面学习补充