diff options
author | Otavio Salvador <otavio@ossystems.com.br> | 2014-05-01 19:02:32 -0300 |
---|---|---|
committer | Stefano Babic <sbabic@denx.de> | 2014-05-09 15:21:25 +0200 |
commit | 0ef797a59eba57a03ab40af439c7968b8a45d31b (patch) | |
tree | c9bbcd6ebb704fce92d93e520cc502ea9bb081a0 /include/configs/wandboard.h | |
parent | 8bc7c4874979acc2418327df7a942f6b729794c6 (diff) | |
download | u-boot-imx-0ef797a59eba57a03ab40af439c7968b8a45d31b.zip u-boot-imx-0ef797a59eba57a03ab40af439c7968b8a45d31b.tar.gz u-boot-imx-0ef797a59eba57a03ab40af439c7968b8a45d31b.tar.bz2 |
wandboard: Pass video kernel arguments for HDMI and LCD
This checks if the 7" WVGA produced by Future Eletronics is detected
and pass the needed kernel arguments for it to work.
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Diffstat (limited to 'include/configs/wandboard.h')
-rw-r--r-- | include/configs/wandboard.h | 29 |
1 files changed, 28 insertions, 1 deletions
diff --git a/include/configs/wandboard.h b/include/configs/wandboard.h index 584fc9e..7d96908 100644 --- a/include/configs/wandboard.h +++ b/include/configs/wandboard.h @@ -106,6 +106,7 @@ #define CONFIG_VIDEO_LOGO #define CONFIG_VIDEO_BMP_LOGO #define CONFIG_IPUV3_CLK 260000000 +#define CONFIG_CMD_HDMIDETECT #define CONFIG_IMX_HDMI #define CONFIG_IMX_VIDEO_SKIP @@ -144,7 +145,33 @@ "fi; " \ "fi\0" \ "mmcargs=setenv bootargs console=${console},${baudrate} " \ - "root=${mmcroot}\0" \ + "root=${mmcroot}; run videoargs\0" \ + "videoargs=" \ + "setenv nextcon 0; " \ + "if hdmidet; then " \ + "setenv bootargs ${bootargs} " \ + "video=mxcfb${nextcon}:dev=hdmi,1280x720M@60," \ + "if=RGB24; " \ + "setenv fbmen fbmem=28M; " \ + "setexpr nextcon ${nextcon} + 1; " \ + "else " \ + "echo - no HDMI monitor;" \ + "fi; " \ + "i2c dev 1; " \ + "if i2c probe 0x10; then " \ + "setenv bootargs ${bootargs} " \ + "video=mxcfb${nextcon}:dev=lcd,800x480@60," \ + "if=RGB666; " \ + "if test 0 -eq ${nextcon}; then " \ + "setenv fbmem fbmem=10M; " \ + "else " \ + "setenv fbmem ${fbmem},10M; " \ + "fi; " \ + "setexpr nextcon ${nextcon} + 1; " \ + "else " \ + "echo '- no FWBADAPT-7WVGA-LCD-F07A-0102 display';" \ + "fi; " \ + "setenv bootargs ${bootargs} ${fbmem}\0" \ "loadbootscript=" \ "fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${script};\0" \ "bootscript=echo Running bootscript from mmc ...; " \ |