video: rockchip: fb: add parse screen physical size
[firefly-linux-kernel-4.4.55.git] / include / video / display_timing.h
index 82723915e2b3394fd9e26cd56a1d72d66d73e11b..0ff62c5e16f886405107fe6ba699167765004d8a 100644 (file)
@@ -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,16 @@ 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 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
 };