drm/panel: add support for Sharp F402 2048x1536 panel
[firefly-linux-kernel-4.4.55.git] / include / video / display_timing.h
index 54d70cd8579018cd20a0c05370a30bd8d5e7e5e0..e9e168a56c5c78ac9bfdafc873bfd2e9e6c0bef1 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,8 +76,11 @@ 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 */