* [U-Boot] [PATCH v2] Atmel LCD driver GUARDTIME fix
@ 2009-06-29 14:59 Mark Jackson
2009-06-29 16:16 ` Jean-Christophe PLAGNIOL-VILLARD
2009-06-30 14:36 ` Anatolij Gustschin
0 siblings, 2 replies; 3+ messages in thread
From: Mark Jackson @ 2009-06-29 14:59 UTC (permalink / raw)
To: u-boot
This patch allows the guard time parameter to be set in
the Atmel LCDC driver.
By default, the previous value of 1 is used, unless the
setting is defined elsewhere.
Signed-off-by: Mark Jackson <mpfj@mimc.co.uk>
---
drivers/video/atmel_lcdfb.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/drivers/video/atmel_lcdfb.c b/drivers/video/atmel_lcdfb.c
index 3a51cc7..db86763 100644
--- a/drivers/video/atmel_lcdfb.c
+++ b/drivers/video/atmel_lcdfb.c
@@ -42,6 +42,9 @@ short console_row;
/* configurable parameters */
#define ATMEL_LCDC_CVAL_DEFAULT 0xc8
#define ATMEL_LCDC_DMA_BURST_LEN 8
+#ifndef ATMEL_LCDC_GUARD_TIME
+#define ATMEL_LCDC_GUARD_TIME 1
+#endif
#if defined(CONFIG_AT91SAM9263) || defined(CONFIG_AT91CAP9)
#define ATMEL_LCDC_FIFO_SIZE 2048
@@ -69,7 +72,7 @@ void lcd_ctrl_init(void *lcdbase)
/* Turn off the LCD controller and the DMA controller */
lcdc_writel(panel_info.mmio, ATMEL_LCDC_PWRCON,
- 1 << ATMEL_LCDC_GUARDT_OFFSET);
+ ATMEL_LCDC_GUARD_TIME << ATMEL_LCDC_GUARDT_OFFSET);
/* Wait for the LCDC core to become idle */
while (lcdc_readl(panel_info.mmio, ATMEL_LCDC_PWRCON) & ATMEL_LCDC_BUSY)
@@ -150,7 +153,7 @@ void lcd_ctrl_init(void *lcdbase)
lcdc_writel(panel_info.mmio, ATMEL_LCDC_DMACON, ATMEL_LCDC_DMAEN);
lcdc_writel(panel_info.mmio, ATMEL_LCDC_PWRCON,
- (1 << ATMEL_LCDC_GUARDT_OFFSET) | ATMEL_LCDC_PWR);
+ (ATMEL_LCDC_GUARD_TIME << ATMEL_LCDC_GUARDT_OFFSET) | ATMEL_LCDC_PWR);
}
ulong calc_fbsize(void)
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [U-Boot] [PATCH v2] Atmel LCD driver GUARDTIME fix
2009-06-29 14:59 [U-Boot] [PATCH v2] Atmel LCD driver GUARDTIME fix Mark Jackson
@ 2009-06-29 16:16 ` Jean-Christophe PLAGNIOL-VILLARD
2009-06-30 14:36 ` Anatolij Gustschin
1 sibling, 0 replies; 3+ messages in thread
From: Jean-Christophe PLAGNIOL-VILLARD @ 2009-06-29 16:16 UTC (permalink / raw)
To: u-boot
On 15:59 Mon 29 Jun , Mark Jackson wrote:
> This patch allows the guard time parameter to be set in
> the Atmel LCDC driver.
>
> By default, the previous value of 1 is used, unless the
> setting is defined elsewhere.
>
> Signed-off-by: Mark Jackson <mpfj@mimc.co.uk>
> ---
fine for me
Best Regards,
J.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [U-Boot] [PATCH v2] Atmel LCD driver GUARDTIME fix
2009-06-29 14:59 [U-Boot] [PATCH v2] Atmel LCD driver GUARDTIME fix Mark Jackson
2009-06-29 16:16 ` Jean-Christophe PLAGNIOL-VILLARD
@ 2009-06-30 14:36 ` Anatolij Gustschin
1 sibling, 0 replies; 3+ messages in thread
From: Anatolij Gustschin @ 2009-06-30 14:36 UTC (permalink / raw)
To: u-boot
Mark Jackson wrote:
> This patch allows the guard time parameter to be set in
> the Atmel LCDC driver.
>
> By default, the previous value of 1 is used, unless the
> setting is defined elsewhere.
>
> Signed-off-by: Mark Jackson <mpfj@mimc.co.uk>
> ---
> drivers/video/atmel_lcdfb.c | 7 +++++--
> 1 files changed, 5 insertions(+), 2 deletions(-)
Applied to u-boot-video. Thanks!
Best regards,
Anatolij
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-06-30 14:36 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-29 14:59 [U-Boot] [PATCH v2] Atmel LCD driver GUARDTIME fix Mark Jackson
2009-06-29 16:16 ` Jean-Christophe PLAGNIOL-VILLARD
2009-06-30 14:36 ` Anatolij Gustschin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox