From: akpm@linux-foundation.org
To: sudhakar.raj@ti.com, krzysztof.h1@wp.pl,
pkiryukhin@ru.mvista.com, schen@mvista.com,
mm-commits@vger.kernel.org
Subject: [folded] davinci-fb-frame-buffer-driver-for-ti-da8xx-omap-l1xx-v5.patch removed from -mm tree
Date: Tue, 22 Sep 2009 14:51:54 -0700 [thread overview]
Message-ID: <200909222151.n8MLpshd017347@imap1.linux-foundation.org> (raw)
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;
reply other threads:[~2009-09-22 21:52 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200909222151.n8MLpshd017347@imap1.linux-foundation.org \
--to=akpm@linux-foundation.org \
--cc=krzysztof.h1@wp.pl \
--cc=linux-kernel@vger.kernel.org \
--cc=mm-commits@vger.kernel.org \
--cc=pkiryukhin@ru.mvista.com \
--cc=schen@mvista.com \
--cc=sudhakar.raj@ti.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.