@@ -78,10 +78,7 @@ struct fb_videomode {
unsigned int flag;
};
-#define FB_SYNC_VERT_HIGH_ACT 2 /* vertical sync high active */
-#define FB_SYNC_COMP_HIGH_ACT 8 /* composite sync high active */
-#define FB_VMODE_NONINTERLACED 0 /* non interlaced */
-
+#ifdef CONFIG_PDM360NG
/* This setting is used for the ifm pdm360ng with PRIMEVIEW PM070WL3 */
static struct fb_videomode fsl_diu_mode_800 = {
.name = "800x600-60",
@@ -98,6 +95,24 @@ static struct fb_videomode fsl_diu_mode_800 = {
.sync = 0,
.vmode = FB_VMODE_NONINTERLACED
};
+#else
+/* For the SHARP LQ084S3LG01, used on the P1022DS board */
+static struct fb_videomode fsl_diu_mode_800 = {
+ .name = "800x600-60",
+ .refresh = 60,
+ .xres = 800,
+ .yres = 600,
+ .pixclock = 25000,
+ .left_margin = 88,
+ .right_margin = 40,
+ .upper_margin = 23,
+ .lower_margin = 1,
+ .hsync_len = 128,
+ .vsync_len = 4,
+ .sync = FB_SYNC_COMP_HIGH_ACT | FB_SYNC_VERT_HIGH_ACT,
+ .vmode = FB_VMODE_NONINTERLACED
+};
+#endif
/*
* These parameters give default parameters
The SHARP LQ084S3LG01 is a TFT LCD used on the P1022DS (revision "C") board. This device only supports 800x600 resolution, so if that resolution is selected, assume that this is the device. The device is attached to the LVDS port on the P1022DS board. Also change the existing entry for 800x600 so that it is used only on the PDM360NG board, to avoid confusion. We should probably add a more robust method for specifying display parameters. Signed-off-by: Timur Tabi <timur@freescale.com> --- drivers/video/fsl_diu_fb.c | 23 +++++++++++++++++++---- 1 files changed, 19 insertions(+), 4 deletions(-)