diff --git a/configs/mx6sabreauto_defconfig b/configs/mx6sabreauto_defconfig index d0f950bb6e..a8ac32a0e7 100644 --- a/configs/mx6sabreauto_defconfig +++ b/configs/mx6sabreauto_defconfig @@ -9,6 +9,7 @@ CONFIG_SPL_MMC_SUPPORT=y CONFIG_SPL_SERIAL_SUPPORT=y CONFIG_SPL=y CONFIG_SPL_LIBDISK_SUPPORT=y +CONFIG_CMD_HDMIDETECT=y CONFIG_NXP_BOARD_REVISION=y CONFIG_NR_DRAM_BANKS=1 # CONFIG_SYS_MALLOC_F is not set diff --git a/configs/mx6sabresd_defconfig b/configs/mx6sabresd_defconfig index 0fd32aa1d6..980ff10404 100644 --- a/configs/mx6sabresd_defconfig +++ b/configs/mx6sabresd_defconfig @@ -9,6 +9,7 @@ CONFIG_SPL_MMC_SUPPORT=y CONFIG_SPL_SERIAL_SUPPORT=y CONFIG_SPL=y CONFIG_SPL_LIBDISK_SUPPORT=y +CONFIG_CMD_HDMIDETECT=y CONFIG_NR_DRAM_BANKS=1 # CONFIG_SYS_MALLOC_F is not set CONFIG_FIT=y diff --git a/include/configs/mx6sabre_common.h b/include/configs/mx6sabre_common.h index 1f036165da..64a5f037c0 100644 --- a/include/configs/mx6sabre_common.h +++ b/include/configs/mx6sabre_common.h @@ -48,13 +48,15 @@ #define EMMC_ENV "" #endif -#ifndef VIDEO_ARGS -#define VIDEO_ARGS "" -#endif +#define VIDEO_ARGS "${video_args}" +#define VIDEO_ARGS_SCRIPT "run video_args_script; " -#ifndef VIDEO_ARGS_SCRIPT -#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" \ @@ -94,7 +96,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}; " \ diff --git a/include/configs/mx6sabresd.h b/include/configs/mx6sabresd.h index b5a952db67..555942a2c2 100644 --- a/include/configs/mx6sabresd.h +++ b/include/configs/mx6sabresd.h @@ -18,9 +18,6 @@ #define CONFIG_SUPPORT_EMMC_BOOT /* eMMC specific */ -#define VIDEO_ARGS "${video_args}" -#define VIDEO_ARGS_SCRIPT "run video_args_script; " - #include "mx6sabre_common.h" /* Falcon Mode */