From: yxj Date: Sat, 23 Feb 2013 06:17:42 +0000 (+0800) Subject: rk fb: add some key parameter for layer_par,wirite config done when show logo X-Git-Tag: firefly_0821_release~7539 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=ecb79598d3eefe6ea4ff55656297bbf9b1c4b38d;p=firefly-linux-kernel-4.4.55.git rk fb: add some key parameter for layer_par,wirite config done when show logo --- diff --git a/drivers/video/rockchip/rk_fb.c b/drivers/video/rockchip/rk_fb.c index 328e632ce679..e5c475335306 100644 --- a/drivers/video/rockchip/rk_fb.c +++ b/drivers/video/rockchip/rk_fb.c @@ -1241,6 +1241,7 @@ int rk_fb_register(struct rk_lcdc_device_driver *dev_drv, fb_inf->fb[0]->fbops->fb_pan_display(&(fb_inf->fb[0]->var), fb_inf->fb[0]); } #endif + fb_inf->fb[0]->fbops->fb_ioctl(fb_inf->fb[0],RK_FBIOSET_CONFIG_DONE,NULL); } #endif diff --git a/include/linux/rk_fb.h b/include/linux/rk_fb.h index 45e23f6b5840..fc03272d6875 100644 --- a/include/linux/rk_fb.h +++ b/include/linux/rk_fb.h @@ -192,26 +192,36 @@ typedef enum _TRSP_MODE } TRSP_MODE; struct layer_par { - char name[5]; - int id; - bool state; //on or off - u32 pseudo_pal[16]; - u32 y_offset; //yuv/rgb offset -->LCDC_WINx_YRGB_MSTx - u32 c_offset; //cb cr offset--->LCDC_WINx_CBR_MSTx - u32 xpos; //start point in panel --->LCDC_WINx_DSP_ST - u32 ypos; - u16 xsize; // display window width/height -->LCDC_WINx_DSP_INFO - u16 ysize; - u16 xact; //origin display window size -->LCDC_WINx_ACT_INFO - u16 yact; - u16 xvir; //virtual width/height -->LCDC_WINx_VIR - u16 yvir; - unsigned long smem_start; - unsigned long cbr_start; // Cbr memory start address - enum data_format format; - - bool support_3d; - + char name[5]; + int id; + bool state; //on or off + u32 pseudo_pal[16]; + u32 y_offset; //yuv/rgb offset -->LCDC_WINx_YRGB_MSTx + u32 c_offset; //cb cr offset--->LCDC_WINx_CBR_MSTx + u32 xpos; //start point in panel --->LCDC_WINx_DSP_ST + u32 ypos; + u16 xsize; // display window width/height -->LCDC_WINx_DSP_INFO + u16 ysize; + u16 xact; //origin display window size -->LCDC_WINx_ACT_INFO + u16 yact; + u16 xvir; //virtual width/height -->LCDC_WINx_VIR + u16 yvir; + unsigned long smem_start; + unsigned long cbr_start; // Cbr memory start address + enum data_format format; + + bool support_3d; + u32 scale_yrgb_x; + u32 scale_yrgb_y; + u32 scale_cbcr_x; + u32 scale_cbcr_y; + u32 dsp_stx; + u32 dsp_sty; + u32 vir_stride; + u32 y_addr; + u32 uv_addr; + u8 fmt_cfg; + u8 swap_rb; }; struct rk_lcdc_device_driver{