Skip to content
Snippets Groups Projects
Commit 06a3e438 authored by Ian Ray's avatar Ian Ray Committed by Stefano Babic
Browse files

board: ge: bx50v3: configure video arguments using VPD


Configure video arguments at run-time instead of at compile-time.

Signed-off-by: default avatarIan Ray <ian.ray@ge.com>
Signed-off-by: default avatarNandor Han <nandor.han@ge.com>
Signed-off-by: default avatarSebastian Reichel <sebastian.reichel@collabora.co.uk>
parent 7927ff7a
No related branches found
No related tags found
No related merge requests found
...@@ -803,6 +803,9 @@ int board_late_init(void) ...@@ -803,6 +803,9 @@ int board_late_init(void)
add_board_boot_modes(board_boot_modes); add_board_boot_modes(board_boot_modes);
#endif #endif
if (is_b850v3())
env_set("videoargs", "video=DP-1:1024x768@60 video=HDMI-A-1:1024x768@60");
/* board specific pmic init */ /* board specific pmic init */
pmic_init(); pmic_init();
......
...@@ -14,7 +14,6 @@ ...@@ -14,7 +14,6 @@
#include <asm/arch/imx-regs.h> #include <asm/arch/imx-regs.h>
#include <asm/mach-imx/gpio.h> #include <asm/mach-imx/gpio.h>
#define BX50V3_BOOTARGS_EXTRA
#if defined(CONFIG_TARGET_GE_B450V3) #if defined(CONFIG_TARGET_GE_B450V3)
#define CONFIG_BOARD_NAME "General Electric B450v3" #define CONFIG_BOARD_NAME "General Electric B450v3"
#elif defined(CONFIG_TARGET_GE_B650V3) #elif defined(CONFIG_TARGET_GE_B650V3)
...@@ -22,8 +21,6 @@ ...@@ -22,8 +21,6 @@
#elif defined(CONFIG_TARGET_GE_B850V3) #elif defined(CONFIG_TARGET_GE_B850V3)
#define CONFIG_BOARD_NAME "General Electric B850v3" #define CONFIG_BOARD_NAME "General Electric B850v3"
#undef BX50V3_BOOTARGS_EXTRA #undef BX50V3_BOOTARGS_EXTRA
#define BX50V3_BOOTARGS_EXTRA "video=DP-1:1024x768@60 " \
"video=HDMI-A-1:1024x768@60 "
#else #else
#define CONFIG_BOARD_NAME "General Electric BA16 Generic" #define CONFIG_BOARD_NAME "General Electric BA16 Generic"
#endif #endif
...@@ -113,7 +110,7 @@ ...@@ -113,7 +110,7 @@
"ro rootwait cma=128M " \ "ro rootwait cma=128M " \
"bootcause=${bootcause} " \ "bootcause=${bootcause} " \
"${quiet} console=${console} ${rtc_status} " \ "${quiet} console=${console} ${rtc_status} " \
BX50V3_BOOTARGS_EXTRA "\0" \ "${videoargs}" "\0" \
"doquiet=" \ "doquiet=" \
"if ext2load ${dev} ${devnum}:5 0x7000A000 /boot/console; " \ "if ext2load ${dev} ${devnum}:5 0x7000A000 /boot/console; " \
"then setenv quiet; fi\0" \ "then setenv quiet; fi\0" \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment