summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Chen <b02280@freescale.com>2008-04-15 11:11:38 +0800
committerDaniel Schaeffer <daniel.schaeffer@timesys.com>2008-08-25 15:21:01 -0400
commitea9d5465164f0fbb95b7de15c8b41393375b8f02 (patch)
treeabf3e3432f5de67b31a2989c38d40575f247b59c
parent4c9b02825e270d2d7ae75eb871a12ca0206a975d (diff)
ENGR00072220 IMX31 Display error at the top of LCD
Top 10 lines of LCD display as black. The upper-margin of the LCD must set 0 for iMX31, because the Data Enable signal is always true on iMX31 3ds. Signed-off-by: Jason Chen <b02280@freescale.com>
-rwxr-xr-x[-rw-r--r--]drivers/video/mxc/mxcfb_epson_vga.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/drivers/video/mxc/mxcfb_epson_vga.c b/drivers/video/mxc/mxcfb_epson_vga.c
index 0ef6bb8ca032..07899c4610ae 100644..100755
--- a/drivers/video/mxc/mxcfb_epson_vga.c
+++ b/drivers/video/mxc/mxcfb_epson_vga.c
@@ -36,6 +36,7 @@
#include <linux/regulator/regulator.h>
#include <linux/spi/spi.h>
#include <asm/arch/mxcfb.h>
+#include <asm/mach-types.h>
static struct spi_device *lcd_spi;
@@ -50,7 +51,7 @@ static struct regulator *core_reg;
static struct fb_videomode video_modes[] = {
{
/* 480x640 @ 60 Hz */
- "Epson-VGA", 60, 480, 640, 41701, 0, 41, 10, 5, 20, 10,
+ "Epson-VGA", 60, 480, 640, 41701, 60, 41, 10, 5, 20, 10,
FB_SYNC_CLK_INVERT | FB_SYNC_OE_ACT_HIGH,
FB_VMODE_NONINTERLACED,
0,},
@@ -64,6 +65,11 @@ static void lcd_init_fb(struct fb_info *info)
fb_videomode_to_var(&var, &video_modes[0]);
+ if (machine_is_mx31_3ds()) {
+ var.upper_margin = 0;
+ var.left_margin = 0;
+ }
+
var.activate = FB_ACTIVATE_ALL;
var.yres_virtual = var.yres * 2;