diff options
author | Heiko Schocher <hs@denx.de> | 2013-08-03 07:22:50 +0200 |
---|---|---|
committer | Anatolij Gustschin <agust@denx.de> | 2013-08-10 10:38:28 +0200 |
commit | 765f2f083fefbfc1e8fb4ef5e4f32d254b54ed16 (patch) | |
tree | e077d882a5284f7f07b452d27fb412ffde69b2c7 /board/davinci/ea20 | |
parent | b424aae4be86c308cfda272cdef337735276c556 (diff) | |
download | u-boot-imx-765f2f083fefbfc1e8fb4ef5e4f32d254b54ed16.zip u-boot-imx-765f2f083fefbfc1e8fb4ef5e4f32d254b54ed16.tar.gz u-boot-imx-765f2f083fefbfc1e8fb4ef5e4f32d254b54ed16.tar.bz2 |
video, da8xx-fb: changes for am335x usage
to use this driver also on am335x based boards, the following
changes are made:
- struct lcd_ctrl_config lcd_cfg is now configurable
through board code
- controller base is configurable through define
DA8XX_LCD_CNTL_BASE. To be compatible with older
da8xx based boards: If this define is missing, the
DAVINCI_LCD_CNTL_BASE is used
- Determine LCD IP Version, and make the driver
working on lcd revision register values:
Version 1:
0x4C100102
Version 2:
0x4F200800
0x4F201000
Signed-off-by: Heiko Schocher <hs@denx.de>
Cc: Stefano Babic <sbabic@denx.de>
Cc: Anatolij Gustschin <agust@denx.de>
Cc: Tom Rini <trini@ti.com>
Acked-by: Tom Rini <trini@ti.com>
Diffstat (limited to 'board/davinci/ea20')
-rw-r--r-- | board/davinci/ea20/ea20.c | 26 |
1 files changed, 25 insertions, 1 deletions
diff --git a/board/davinci/ea20/ea20.c b/board/davinci/ea20/ea20.c index 89ee079..c4444c7 100644 --- a/board/davinci/ea20/ea20.c +++ b/board/davinci/ea20/ea20.c @@ -43,6 +43,30 @@ static const struct da8xx_panel lcd_panel = { .invert_pxl_clk = 0, }; +static const struct display_panel disp_panel = { + QVGA, + 16, + 16, + COLOR_ACTIVE, +}; + +static const struct lcd_ctrl_config lcd_cfg = { + &disp_panel, + .ac_bias = 255, + .ac_bias_intrpt = 0, + .dma_burst_sz = 16, + .bpp = 16, + .fdd = 255, + .tft_alt_mode = 0, + .stn_565_mode = 0, + .mono_8bit_mode = 0, + .invert_line_clock = 1, + .invert_frm_clock = 1, + .sync_edge = 0, + .sync_ctrl = 1, + .raster_order = 0, +}; + /* SPI0 pin muxer settings */ static const struct pinmux_config spi1_pins[] = { { pinmux(5), 1, 1 }, @@ -259,7 +283,7 @@ int board_init(void) /* address of boot parameters */ gd->bd->bi_boot_params = LINUX_BOOT_PARAM_ADDR; - da8xx_video_init(&lcd_panel, 16); + da8xx_video_init(&lcd_panel, &lcd_cfg, 16); return 0; } |