X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=include%2Fvideo%2Fdisplay_timing.h;h=e9e168a56c5c78ac9bfdafc873bfd2e9e6c0bef1;hb=e8308567c1c6ee659fd464d6d27632731833f03b;hp=82723915e2b3394fd9e26cd56a1d72d66d73e11b;hpb=089c13477b5bed0c83ebb4e7092f254b70df080d;p=firefly-linux-kernel-4.4.55.git diff --git a/include/video/display_timing.h b/include/video/display_timing.h index 82723915e2b3..e9e168a56c5c 100644 --- a/include/video/display_timing.h +++ b/include/video/display_timing.h @@ -27,10 +27,11 @@ enum display_flags { DISPLAY_FLAGS_PIXDATA_NEGEDGE = BIT(7), DISPLAY_FLAGS_INTERLACED = BIT(8), DISPLAY_FLAGS_DOUBLESCAN = BIT(9), -#if defined(CONFIG_FB_ROCKCHIP) || defined(CONFIG_DRM_ROCKCHIP) - DISPLAY_FLAGS_SWAP_GB = BIT(10), - DISPLAY_FLAGS_SWAP_RG = BIT(11), - DISPLAY_FLAGS_SWAP_RB = BIT(12), + DISPLAY_FLAGS_DOUBLECLK = BIT(10), +#if defined(CONFIG_FB_ROCKCHIP) + DISPLAY_FLAGS_SWAP_GB = BIT(16), + DISPLAY_FLAGS_SWAP_RG = BIT(17), + DISPLAY_FLAGS_SWAP_RB = BIT(18), #endif }; @@ -75,13 +76,17 @@ struct display_timing { struct timing_entry vsync_len; /* ver. sync len */ enum display_flags flags; /* display flags */ -#if defined(CONFIG_FB_ROCKCHIP) || defined(CONFIG_DRM_ROCKCHIP) +#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*/ 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; #endif };