* [folded] davinci-fb-frame-buffer-driver-for-ti-da8xx-omap-l1xx-v5.patch removed from -mm tree
@ 2009-09-22 21:51 akpm
0 siblings, 0 replies; only message in thread
From: akpm @ 2009-09-22 21:51 UTC (permalink / raw)
To: sudhakar.raj, krzysztof.h1, pkiryukhin, schen, mm-commits
The patch titled
davinci: fb: Frame Buffer driver for TI DA8xx/OMAP-L1xx v5
has been removed from the -mm tree. Its filename was
davinci-fb-frame-buffer-driver-for-ti-da8xx-omap-l1xx-v5.patch
This patch was dropped because it was folded into davinci-fb-frame-buffer-driver-for-ti-da8xx-omap-l1xx-v4.patch
The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/
------------------------------------------------------
Subject: davinci: fb: Frame Buffer driver for TI DA8xx/OMAP-L1xx v5
From: Sudhakar Rajashekhara <sudhakar.raj@ti.com>
Following are the changes since the previous version(v4):
a. An if loop check while returning from lcd_disable_raster()
function has been removed.
b. "invert_pxl_clock" variable has been renamed as "invert_pxl_clk"
and moved from lcd_ctrl_config structure in include/video/da8xx-fb.h
file to da8xx_panel structure in drivers/video/da8xx-fb.c file.
Appropriate changes in source code as a result of moving this
variable has also been done.
Signed-off-by: Sudhakar Rajashekhara <sudhakar.raj@ti.com>
Cc: Pavel Kiryukhin <pkiryukhin@ru.mvista.com>
Cc: Steve Chen <schen@mvista.com>
Cc: Krzysztof Helt <krzysztof.h1@wp.pl>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
drivers/video/da8xx-fb.c | 16 ++++++++++------
include/video/da8xx-fb.h | 3 ---
2 files changed, 10 insertions(+), 9 deletions(-)
diff -puN drivers/video/da8xx-fb.c~davinci-fb-frame-buffer-driver-for-ti-da8xx-omap-l1xx-v5 drivers/video/da8xx-fb.c
--- a/drivers/video/da8xx-fb.c~davinci-fb-frame-buffer-driver-for-ti-da8xx-omap-l1xx-v5
+++ a/drivers/video/da8xx-fb.c
@@ -158,6 +158,7 @@ struct da8xx_panel {
int vbp; /* Vertical back porch */
int vsw; /* Vertical Sync Pulse Width */
int pxl_clk; /* Pixel clock */
+ unsigned char invert_pxl_clk; /* Invert Pixel clock */
};
static struct da8xx_panel known_lcd_panels[] = {
@@ -173,6 +174,7 @@ static struct da8xx_panel known_lcd_pane
.vbp = 2,
.vsw = 0,
.pxl_clk = 0x10,
+ .invert_pxl_clk = 1,
},
/* Sharp LK043T1DG01 */
[1] = {
@@ -186,6 +188,7 @@ static struct da8xx_panel known_lcd_pane
.vbp = 2,
.vsw = 10,
.pxl_clk = 0x12,
+ .invert_pxl_clk = 0,
},
};
@@ -204,7 +207,6 @@ static int lcd_disable_raster(struct da8
if (ret == 0)
ret = -ETIMEDOUT;
}
-
return ret;
}
@@ -339,11 +341,6 @@ static int lcd_cfg_display(const struct
else
reg &= ~LCD_SYNC_EDGE;
- if (cfg->invert_pxl_clock)
- reg |= LCD_INVERT_PIXEL_CLOCK;
- else
- reg &= ~LCD_INVERT_PIXEL_CLOCK;
-
if (cfg->invert_line_clock)
reg |= LCD_INVERT_LINE_CLOCK;
else
@@ -482,6 +479,13 @@ static int lcd_init(struct da8xx_fb_par
lcdc_write(LCD_CLK_DIVISOR(panel->pxl_clk) |
(LCD_RASTER_MODE & 0x1), LCD_CTRL_REG);
+ if (panel->invert_pxl_clk)
+ lcdc_write((lcdc_read(LCD_RASTER_TIMING_2_REG) |
+ LCD_INVERT_PIXEL_CLOCK), LCD_RASTER_TIMING_2_REG);
+ else
+ lcdc_write((lcdc_read(LCD_RASTER_TIMING_2_REG) &
+ ~LCD_INVERT_PIXEL_CLOCK), LCD_RASTER_TIMING_2_REG);
+
/* Configure the DMA burst size. */
ret = lcd_cfg_dma(cfg->dma_burst_sz);
if (ret < 0)
diff -puN include/video/da8xx-fb.h~davinci-fb-frame-buffer-driver-for-ti-da8xx-omap-l1xx-v5 include/video/da8xx-fb.h
--- a/include/video/da8xx-fb.h~davinci-fb-frame-buffer-driver-for-ti-da8xx-omap-l1xx-v5
+++ a/include/video/da8xx-fb.h
@@ -67,9 +67,6 @@ struct lcd_ctrl_config {
/* Mono 8-bit Mode: 1=D0-D7 or 0=D0-D3 */
unsigned char mono_8bit_mode;
- /* Invert pixel clock */
- unsigned char invert_pxl_clock;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-09-22 21:52 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-22 21:51 [folded] davinci-fb-frame-buffer-driver-for-ti-da8xx-omap-l1xx-v5.patch removed from -mm tree akpm
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.