mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-09-28 15:40:29 +09:00
mx6sabre_common: Dynamically change the video output
Use the 'hdmidetect' command in U-boot to load the appropriate video arguments. If HDMI is connected during boot then make HDMI as the primary framebuffer, otherwise let LVDS be the primary framebuffer. Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
This commit is contained in:
parent
c3e252e8ca
commit
f4998c99d4
@ -8,6 +8,8 @@ CONFIG_SPL_MMC_SUPPORT=y
|
||||
CONFIG_SPL_SERIAL_SUPPORT=y
|
||||
CONFIG_SPL_LIBDISK_SUPPORT=y
|
||||
CONFIG_SPL_WATCHDOG_SUPPORT=y
|
||||
CONFIG_VIDEO=y
|
||||
CONFIG_CMD_HDMIDETECT=y
|
||||
CONFIG_SYS_EXTRA_OPTIONS="IMX_CONFIG=arch/arm/mach-imx/spl_sd.cfg,SPL,MX6QDL"
|
||||
CONFIG_BOOTDELAY=3
|
||||
# CONFIG_CONSOLE_MUX is not set
|
||||
|
@ -8,6 +8,8 @@ CONFIG_SPL_MMC_SUPPORT=y
|
||||
CONFIG_SPL_SERIAL_SUPPORT=y
|
||||
CONFIG_SPL_LIBDISK_SUPPORT=y
|
||||
CONFIG_SPL_WATCHDOG_SUPPORT=y
|
||||
CONFIG_VIDEO=y
|
||||
CONFIG_CMD_HDMIDETECT=y
|
||||
CONFIG_SYS_EXTRA_OPTIONS="IMX_CONFIG=arch/arm/mach-imx/spl_sd.cfg,MX6QDL"
|
||||
CONFIG_BOOTDELAY=3
|
||||
# CONFIG_CONSOLE_MUX is not set
|
||||
|
@ -68,6 +68,13 @@
|
||||
#define VIDEO_ARGS_SCRIPT ""
|
||||
#endif
|
||||
|
||||
#define CONFIG_PREBOOT \
|
||||
"if hdmidet; then " \
|
||||
"setenv video_interfaces hdmi lvds; " \
|
||||
"else " \
|
||||
"setenv video_interfaces lvds hdmi; " \
|
||||
"fi;"
|
||||
|
||||
#define CONFIG_EXTRA_ENV_SETTINGS \
|
||||
"script=boot.scr\0" \
|
||||
"image=zImage\0" \
|
||||
@ -106,7 +113,6 @@
|
||||
"video_args_lcd=setenv video_args $video_args " \
|
||||
"video=mxcfb${fb}:dev=lcd,CLAA-WVGA,if=RGB666\0" \
|
||||
"fb=0\0" \
|
||||
"video_interfaces=hdmi lvds lcd\0" \
|
||||
"video_args_script=" \
|
||||
"for v in ${video_interfaces}; do " \
|
||||
"run video_args_${v}; " \
|
||||
|
Loading…
Reference in New Issue
Block a user