if (!of_property_read_u32(np, "out-face", &val))
dt->face = val;
if (!of_property_read_u32(np, "color-mode", &val))
- dt->color_mode = val;
+ dt->color_mode = val;
+ if (!of_property_read_u32(np, "screen-width", &val))
+ dt->screen_widt = val;
+ if (!of_property_read_u32(np, "screen-hight", &val))
+ dt->screen_hight = val;
prop = of_find_property(np, "dsp-lut", &length);
if (prop) {
dt->dsp_lut = kzalloc(length, GFP_KERNEL);
screen->lvds_format = dt->lvds_format;
screen->face = dt->face;
screen->color_mode = dt->color_mode;
+ screen->width = dt->screen_widt;
+ screen->height = dt->screen_hight;
screen->dsp_lut = dt->dsp_lut;
screen->cabc_lut = dt->cabc_lut;
screen->cabc_gamma_base = dt->cabc_gamma_base;
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.width = dev_drv->cur_screen->width;
+ fbi->var.height = dev_drv->cur_screen->height;
fbi->var.grayscale |=
(fbi->var.xres << 8) + (fbi->var.yres << 20);
#if defined(CONFIG_LOGO_LINUX_BMP)
enum display_flags flags; /* display flags */
#if defined(CONFIG_FB_ROCKCHIP)
u16 screen_type; /*screen type*/
- u16 lvds_format; /*lvds data format*/
- u16 face; /*display output interface*/
- u16 color_mode; /*input color mode: RGB/YUV*/
+ u16 screen_widt; /* screen physical size */
+ u16 screen_hight;
+ u16 lvds_format; /*lvds data format for lvds screen*/
+ u16 face; /*display output interface format:24bit 18bit 16bit*/
+ u16 color_mode; /* input color mode: RGB or YUV */
u32 *dsp_lut;
u32 *cabc_lut;
u32 *cabc_gamma_base;