video: rockchip: fb: add parse screen physical size
[firefly-linux-kernel-4.4.55.git] / include / video / display_timing.h
index 28d9d0d566cacf8d2e61f5fed0434421aca696ed..0ff62c5e16f886405107fe6ba699167765004d8a 100644 (file)
@@ -28,6 +28,11 @@ enum display_flags {
        DISPLAY_FLAGS_INTERLACED        = BIT(8),
        DISPLAY_FLAGS_DOUBLESCAN        = BIT(9),
        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
 };
 
 /*
@@ -71,6 +76,17 @@ struct display_timing {
        struct timing_entry vsync_len;          /* ver. sync len */
 
        enum display_flags flags;               /* display flags */
+#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
 };
 
 /*