From: Jean-Christophe PLAGNIOL-VILLARD Date: Sat, 13 Jun 2009 16:20:51 +0200 Subject: [U-Boot] [PATCH] Add AVR32 LCD support In-Reply-To: <1244123889.1999.56.camel@mpfj-x64> References: <1244123889.1999.56.camel@mpfj-x64> Message-ID: <20090613142051.GD25406@game.jcrosoft.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de > diff --git a/drivers/video/atmel_lcdfb.c b/drivers/video/atmel_lcdfb.c > index 3a51cc7..14f578e 100644 > --- a/drivers/video/atmel_lcdfb.c > +++ b/drivers/video/atmel_lcdfb.c > @@ -42,6 +42,7 @@ short console_row; > /* configurable parameters */ > #define ATMEL_LCDC_CVAL_DEFAULT 0xc8 > #define ATMEL_LCDC_DMA_BURST_LEN 8 > +#define ATMEL_LCDC_GUARD_TIME 2 as you change it from 1 to 2 and it's use on at91 too this MUST be test on it so please split your patch in 2 one that update the atmel_lcdfb and on other that add the avr32 support > > #if defined(CONFIG_AT91SAM9263) || defined(CONFIG_AT91CAP9) > #define ATMEL_LCDC_FIFO_SIZE 2048 > @@ -69,7 +70,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 +151,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); > } > Best Regards, J.