2008-03-10 16:37:14

by Nicolas Ferre

[permalink] [raw]
Subject: [PATCH] atmel_lcdfb: adjust fifo size for at91sam9rl

AT91SAM9RL soc has a 2048 bytes deep FIFO, like AT91SAM9263.

Signed-off-by: Nicolas Ferre <[email protected]>
---

--- a/drivers/video/atmel_lcdfb.c
+++ b/drivers/video/atmel_lcdfb.c
@@ -30,7 +30,7 @@
#define ATMEL_LCDC_CVAL_DEFAULT 0xc8
#define ATMEL_LCDC_DMA_BURST_LEN 8

-#if defined(CONFIG_ARCH_AT91SAM9263)
+#if defined(CONFIG_ARCH_AT91SAM9263) || defined(CONFIG_ARCH_AT91SAM9RL)
#define ATMEL_LCDC_FIFO_SIZE 2048
#else
#define ATMEL_LCDC_FIFO_SIZE 512


2008-03-13 20:59:53

by Haavard Skinnemoen

[permalink] [raw]
Subject: Re: [Linux-fbdev-devel] [PATCH] atmel_lcdfb: adjust fifo size for at91sam9rl

On Mon, 10 Mar 2008 17:36:42 +0100
Nicolas Ferre <[email protected]> wrote:

> -#if defined(CONFIG_ARCH_AT91SAM9263)
> +#if defined(CONFIG_ARCH_AT91SAM9263) || defined(CONFIG_ARCH_AT91SAM9RL)
> #define ATMEL_LCDC_FIFO_SIZE 2048
> #else
> #define ATMEL_LCDC_FIFO_SIZE 512

Hmm. Perhaps it's time to consider moving this parameter to
platform_data?

Haavard