From 6336d79bb36da59f2edb3316282b0cd7ae98e678 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Thu, 10 Oct 2013 18:44:08 -0600 Subject: [PATCH] SAMA5 LCDC: Wait when the LCDC is resynchronizing (SIF); Try start-up parameters from Barebox (this still don't work) --- configs/sama5d3x-ek/include/board.h | 34 +++++++++-------------------- 1 file changed, 10 insertions(+), 24 deletions(-) diff --git a/configs/sama5d3x-ek/include/board.h b/configs/sama5d3x-ek/include/board.h index e9e6396132..cdba067c5e 100644 --- a/configs/sama5d3x-ek/include/board.h +++ b/configs/sama5d3x-ek/include/board.h @@ -73,30 +73,16 @@ /* LCD Geometry and Timing */ -#define BOARD_LCD_WIDTH 800 /* Display width (pixels) */ -#define BOARD_LCD_HEIGHT 480 /* Display height (pixels) */ -#define BOARD_LCD_IFWIDTH 24 /* Display interface width (bits) */ -#define BOARD_LCD_TIMING_VFP 22 /* Vertical front porch (lines) */ -#define BOARD_LCD_TIMING_VBP 21 /* Vertical back porch (lines) */ -#define BOARD_LCD_TIMING_VPW 2 /* Vertical pulse width (lines) */ -#define BOARD_LCD_TIMING_HFP 64 /* Horizontal front porch (LCDDOTCLK cycles) */ -#define BOARD_LCD_TIMING_HBP 64 /* Horizontal back porch (LCDDOTCLK cycles) */ -#define BOARD_LCD_TIMING_HPW 128 /* Horizontal pulse width (LCDDOTCLK cycles) */ -#define BOARD_LCD_FRAMERATE 40 /* Frame rate (Hz) */ - -/* Frame size (words) (height * width * bpp / 32) */ - -#define BOARD_LCD_FRAMESIZE \ - (BOARD_LCD_WIDTH * BOARD_LCD_HEIGHT * BOARD_LCD_IFWIDTH / 32) - -/* Pixel clock rate (Hz )(HS period * VS period * BOARD_LCD_FRAMERATE). */ - -#define BOARD_LCD_HSPERIOD \ - (BOARD_LCD_TIMING_HPW + BOARD_LCD_TIMING_HBP + BOARD_LCD_WIDTH + BOARD_LCD_TIMING_HFP) -#define BOARD_LCD_VSPERIOD \ - (BOARD_LCD_TIMING_VPW + BOARD_LCD_TIMING_VBP + BOARD_LCD_HEIGHT + BOARD_LCD_TIMING_VFP) -#define BOARD_LCD_PIXELCLOCK \ - (BOARD_LCD_HSPERIOD * BOARD_LCD_VSPERIOD * BOARD_LCD_FRAMERATE) +#define BOARD_LCD_WIDTH 800 /* Display width (pixels) */ +#define BOARD_LCD_HEIGHT 480 /* Display height (pixels) */ +#define BOARD_LCD_PIXELCLOCK 33260000 /* Pixel clock */ +#define BOARD_LCDC_GUARDTIME 9 /* Guard time */ +#define BOARD_LCD_VSPW 2 /* Vertical pulse width (lines) */ +#define BOARD_LCD_HSPW 128 /* Horizontal pulse width (LCDDOTCLK) */ +#define BOARD_LCD_VFPW 37 /* Vertical front porch (lines) */ +#define BOARD_LCD_VBPW 8 /* Vertical back porch (lines) */ +#define BOARD_LCD_HFPW 168 /* Horizontal front porch (LCDDOTCLK cycles) */ +#define BOARD_LCD_HBPW 88 /* Horizontal back porch (LCDDOTCLK cycles) */ /* LED definitions ******************************************************************/ /* There are two LEDs on the SAMA5D3 series-CM board that can be controlled