dt->flags |= val ? DISPLAY_FLAGS_SWAP_RB : 0;
if (!of_property_read_u32(np, "screen-type", &val))
dt->screen_type = val;
+ if (!of_property_read_u32(np, "refresh-mode", &val))
+ dt->refresh_mode = val;
+ else
+ dt->refresh_mode = 0;
if (!of_property_read_u32(np, "lvds-format", &val))
dt->lvds_format = val;
if (!of_property_read_u32(np, "out-face", &val))
screen->mode.yres = dt->vactive.typ;
screen->mode.vsync_len = dt->vsync_len.typ;
screen->type = dt->screen_type;
+ screen->refresh_mode = dt->refresh_mode;
screen->lvds_format = dt->lvds_format;
screen->face = dt->face;
screen->color_mode = dt->color_mode;
unsigned char bottom;
};
-/* Screen description
+/* Screen description
*type:LVDS,RGB,MIPI,MCU
*lvds_fromat:lvds data format,set it if the screen is lvds
*face:thi display output face,18bit,24bit,etc
*/
struct rk_screen {
u16 type;
- u16 lvds_format;
+ u16 refresh_mode;
+ u16 lvds_format;
u16 face;
u16 color_mode;
- u8 lcdc_id;
- u8 screen_id;
+ u8 lcdc_id;
+ u8 screen_id;
struct fb_videomode mode;
u32 post_dsp_stx;
u32 post_dsp_sty;
enum display_flags flags; /* display flags */
#if defined(CONFIG_FB_ROCKCHIP)
u16 screen_type; /*screen type*/
+ u16 refresh_mode; /* 0: video mode 1: cmd mode */
u16 screen_widt; /* screen physical size */
u16 screen_hight;
u16 lvds_format; /*lvds data format for lvds screen*/