diff options
author | Ye Li <ye.li@nxp.com> | 2016-02-23 15:31:11 +0800 |
---|---|---|
committer | Ye Li <ye.li@nxp.com> | 2016-03-25 13:36:51 +0800 |
commit | 64ca304861bbaa2f5b687e70cb73eed04c0a03b2 (patch) | |
tree | dc968544c78a5991f3af2fbf28cc3d503ed19ce6 /board/freescale | |
parent | ea93a34a3348f80462ea5b61a4ca2e9a1d267f4c (diff) | |
download | u-boot-imx-64ca304861bbaa2f5b687e70cb73eed04c0a03b2.zip u-boot-imx-64ca304861bbaa2f5b687e70cb73eed04c0a03b2.tar.gz u-boot-imx-64ca304861bbaa2f5b687e70cb73eed04c0a03b2.tar.bz2 |
MLK-12437-6 mx7dsabresd: Update display to support panel selection
Change to panel environment for display at default. Align this feature to
v2015.04 uboot.
Signed-off-by: Ye Li <ye.li@nxp.com>
Diffstat (limited to 'board/freescale')
-rw-r--r-- | board/freescale/mx7dsabresd/mx7dsabresd.c | 31 |
1 files changed, 24 insertions, 7 deletions
diff --git a/board/freescale/mx7dsabresd/mx7dsabresd.c b/board/freescale/mx7dsabresd/mx7dsabresd.c index 5085384..62ad71d 100644 --- a/board/freescale/mx7dsabresd/mx7dsabresd.c +++ b/board/freescale/mx7dsabresd/mx7dsabresd.c @@ -29,6 +29,7 @@ #include <lcd.h> #include <mxc_epdc_fb.h> #endif +#include <asm/imx-common/video.h> DECLARE_GLOBAL_DATA_PTR; @@ -324,7 +325,7 @@ static iomux_v3_cfg_t const pwm_pads[] = { MX7D_PAD_GPIO1_IO01__GPIO1_IO1 | MUX_PAD_CTRL(NO_PAD_CTRL), }; -static int setup_lcd(void) +void do_enable_parallel_lcd(struct display_info_t const *dev) { imx_iomux_v3_setup_multiple_pads(lcd_pads, ARRAY_SIZE(lcd_pads)); @@ -337,9 +338,29 @@ static int setup_lcd(void) /* Set Brightness to high */ gpio_direction_output(IMX_GPIO_NR(1, 1) , 1); - - return 0; } + +struct display_info_t const displays[] = {{ + .bus = ELCDIF1_IPS_BASE_ADDR, + .addr = 0, + .pixfmt = 24, + .detect = NULL, + .enable = do_enable_parallel_lcd, + .mode = { + .name = "TFT43AB", + .xres = 480, + .yres = 272, + .pixclock = 108695, + .left_margin = 8, + .right_margin = 4, + .upper_margin = 2, + .lower_margin = 4, + .hsync_len = 41, + .vsync_len = 10, + .sync = 0, + .vmode = FB_VMODE_NONINTERLACED +} } }; +size_t display_count = ARRAY_SIZE(displays); #endif #ifdef CONFIG_FEC_MXC @@ -764,10 +785,6 @@ int board_init(void) setup_gpmi_nand(); #endif -#ifdef CONFIG_VIDEO_MXS - setup_lcd(); -#endif - #ifdef CONFIG_FSL_QSPI board_qspi_init(); #endif |