rk fb: add some key parameter for layer_par,wirite config done when show logo
authoryxj <yxj@rock-chips.com>
Sat, 23 Feb 2013 06:17:42 +0000 (14:17 +0800)
committeryxj <yxj@rock-chips.com>
Sat, 23 Feb 2013 09:00:23 +0000 (17:00 +0800)
drivers/video/rockchip/rk_fb.c
include/linux/rk_fb.h

index 328e632ce67905c5d1165ed4861d4d8d67e8b7b7..e5c47533530650c0efcba9bcfd5213f1042143ca 100644 (file)
@@ -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
index 45e23f6b58406b356f053036e95ed1ef0965de05..fc03272d6875cef4dfff6f32ea1269c799cb9c43 100644 (file)
@@ -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{