summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorSandor Yu <R01008@freescale.com>2013-07-01 16:04:25 +0800
committerSandor Yu <R01008@freescale.com>2013-07-02 09:51:03 +0800
commit0c0334779a08cca6c5a509570c944fe229837a21 (patch)
tree6ef8fffe55b2966aa1ed6e416689acae7bb76427 /drivers
parent57ad52cbb0d5b1d82faac8b8cfbe5b3587279799 (diff)
ENGR00261285-02 Lcdif FB: Fix video timing setting
Correct HSYNC_PERIOD, VSYNC_PERIOD, HORIZONTAL_WAIT_CNT and VERTICAL_WAIT_CNT setting. In MX6SL RM, these parmeters define as followed: - HSYNC_PERIOD: Total number of CLK_DIS_LCDIFn cycles between two positive or two negative edges of the HSYNC signal. - VSYNC_PERIOD: Total number of units between two positive or two negative edges of the VSYNC signal. - HORIZONTAL_WAIT_CNT:In the DOTCLK mode, wait for this number of clocks from falling edge (or rising if HSYNC_POL is 1) of HSYNC signal to account for horizontal back porch plus the number of DOTCLKs before the moving picture information begins. - VERTICAL_WAIT_CNT: In the DOTCLK mode, it accounts for the veritcal back porch lines plus the number of horizontal lines before the moving picture begins. After apply the patch, run HDMI CTS with video mode 480p,720p and 1080p test case 7-16~7-19, 7-21~7-27 and 7-33 pass. Signed-off-by: Sandor Yu <R01008@freescale.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/video/mxc/mxc_elcdif_fb.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/video/mxc/mxc_elcdif_fb.c b/drivers/video/mxc/mxc_elcdif_fb.c
index 6624fd0e867e..023d594b8036 100644
--- a/drivers/video/mxc/mxc_elcdif_fb.c
+++ b/drivers/video/mxc/mxc_elcdif_fb.c
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2010-2012 Freescale Semiconductor, Inc.
+ * Copyright (C) 2010-2013 Freescale Semiconductor, Inc.
*/
/*
@@ -940,14 +940,14 @@ static int mxc_elcdif_fb_set_par(struct fb_info *fbi)
setup_dotclk_panel((PICOS2KHZ(fbi->var.pixclock)) * 1000UL,
fbi->var.vsync_len,
- fbi->var.upper_margin +
- fbi->var.yres + fbi->var.lower_margin,
- fbi->var.upper_margin,
+ fbi->var.upper_margin + fbi->var.yres +
+ fbi->var.lower_margin + fbi->var.vsync_len,
+ fbi->var.upper_margin + fbi->var.vsync_len,
fbi->var.yres,
fbi->var.hsync_len,
- fbi->var.left_margin +
- fbi->var.xres + fbi->var.right_margin,
- fbi->var.left_margin,
+ fbi->var.left_margin + fbi->var.xres +
+ fbi->var.right_margin + fbi->var.hsync_len,
+ fbi->var.left_margin + fbi->var.hsync_len,
fbi->var.xres,
bpp_to_pixfmt(fbi),
data->output_pix_fmt,