board: ge: bx50v3: Pass video bootargs for b850v3
PATCH 1/1 board: ge: bx50v3: Pass video bootargs for b850v3
From: Ken Lin <[email protected]>
Due to clock source restrictions on i.MX6, certain pixel clock rates can not be supported. Hence default the resolution/frame rate during boot to a supported value by passing video bootargs 1024x768 at 60 for HDMI (Display Port1) and LVDS (Display Port2) on B850v3.
--- include/configs/ge_bx50v3.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)
include/configs/ge_bx50v3.h +6 -1
@@ -15,6 +15,7 @@#include <asm/arch/imx-regs.h> #include <asm/imx-common/gpio.h> +#define CONFIG_BOOTARGS_EXTRA #if defined(CONFIG_TARGET_GE_B450V3 )#define CONFIG_BOARD_NAME "General Electric B450v3"#define CONFIG_DEFAULT_FDT_FILE "/boot/imx6q-b450v3.dtb"
@@ -24,6 +25,9 @@#elif defined(CONFIG_TARGET_GE_B850V3 )#define CONFIG_BOARD_NAME "General Electric B850v3"#define CONFIG_DEFAULT_FDT_FILE "/boot/imx6q-b850v3.dtb" +#undef CONFIG_BOOTARGS_EXTRA +#define CONFIG_BOOTARGS_EXTRA "video=DP-1:1024x768 at 60 " \ + "video=HDMI-A-1:1024x768 at 60 "#else #define CONFIG_BOARD_NAME "General Electric BA16 Generic"#define CONFIG_DEFAULT_FDT_FILE "/boot/imx6q-ba16.dtb"
@@ -166,7 +170,8 @@"echo 'U-Boot upgraded. Please reset'; " \"fi\0" \"setargs=setenv bootargs console=${console},${baudrate} " \ -"root=/dev/${rootdev} rw rootwait cma=128M\0" \ +"root=/dev/${rootdev} rw rootwait cma=128M " \ +CONFIG_BOOTARGS_EXTRA "\0" \"loadbootscript=" \"ext2load ${dev} ${devnum}:${partnum} ${loadaddr} ${script};\0" \"bootscript=echo Running bootscript from ${dev}:${devnum}:${partnum};" \
Signature · 1 line
2.8.1
PATCH 1/1 board: ge: bx50v3: Pass video bootargs for b850v3
Quoted 37 lines · Akshay Bhat
From: Ken Lin <[email protected]>
Due to clock source restrictions on i.MX6, certain pixel clock rates can not be supported. Hence default the resolution/frame rate during boot to a supported value by passing video bootargs 1024x768 at 60 for HDMI (Display Port1) and LVDS (Display Port2) on B850v3.
Signed-off-by Ken Lin <[email protected]>Signed-off-by Akshay Bhat <[email protected]>--- include/configs/ge_bx50v3.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)include/configs/ge_bx50v3.h +4
-0@@ -15,6 +15,7 @@#include <asm/arch/imx-regs.h> #include <asm/imx-common/gpio.h> +#define CONFIG_BOOTARGS_EXTRA #if defined(CONFIG_TARGET_GE_B450V3 )#define CONFIG_BOARD_NAME "General Electric B450v3"#define CONFIG_DEFAULT_FDT_FILE "/boot/imx6q-b450v3.dtb"@@ -24,6 +25,9 @@#elif defined(CONFIG_TARGET_GE_B850V3 )#define CONFIG_BOARD_NAME "General Electric B850v3"#define CONFIG_DEFAULT_FDT_FILE "/boot/imx6q-b850v3.dtb" +#undef CONFIG_BOOTARGS_EXTRA +#define CONFIG_BOOTARGS_EXTRA "video=DP-1:1024x768 at 60 " \ + "video=HDMI-A-1:1024x768 at 60 "#else #define CONFIG_BOARD_NAME "General Electric BA16 Generic"#define CONFIG_DEFAULT_FDT_FILE "/boot/imx6q-ba16.dtb"
include/configs/ge_bx50v3.h line 177
Quoted 9 lines
include/configs/ge_bx50v3.h +2
-1@@ -166,7 +170,8 @@"echo 'U-Boot upgraded. Please reset'; " \"fi\0" \"setargs=setenv bootargs console=${console},${baudrate} " \ -"root=/dev/${rootdev} rw rootwait cma=128M\0" \ +"root=/dev/${rootdev} rw rootwait cma=128M " \ +CONFIG_BOOTARGS_EXTRA "\0" \"loadbootscript=" \"ext2load ${dev} ${devnum}:${partnum} ${loadaddr} ${script};\0" \"bootscript=echo Running bootscript from ${dev}:${devnum}:${partnum};" \
Applied to u-boot-imx, thanks !
Best regards,
Stefano Babic
Signature · 5 lines
===================================================================== DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de =====================================================================
PATCH 1/1 board: ge: bx50v3: Pass video bootargs for b850v3
Hi Akshay,
Quoted 41 lines · Stefano Babic
Quoted 40 lines · Akshay Bhat
From: Ken Lin <[email protected]>
Due to clock source restrictions on i.MX6, certain pixel clock rates can
not be supported. Hence default the resolution/frame rate during boot to a supported value by passing video bootargs 1024x768 at 60 for HDM5b0d03b306b8d3010835d8b191bfc0581735021fI (Display Port1) and LVDS (Display Port2) on B850v3.Signed-off-by Ken Lin <[email protected]>Signed-off-by Akshay Bhat <[email protected]>--- include/configs/ge_bx50v3.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)include/configs/ge_bx50v3.h +4
-1@@ -15,6 +15,7 @@#include <asm/arch/imx-regs.h> #include <asm/imx-common/gpio.h> +#define CONFIG_BOOTARGS_EXTRA #if defined(CONFIG_TARGET_GE_B450V3 )#define CONFIG_BOARD_NAME "General Electric B450v3"#define CONFIG_DEFAULT_FDT_FILE "/boot/imx6q-b450v3.dtb"@@ -24,6 +25,9 @@#elif defined(CONFIG_TARGET_GE_B850V3 )#define CONFIG_BOARD_NAME "General Electric B850v3"#define CONFIG_DEFAULT_FDT_FILE "/boot/imx6q-b850v3.dtb" +#undef CONFIG_BOOTARGS_EXTRA +#define CONFIG_BOOTARGS_EXTRA "video=DP-1:1024x768 at 60 " \ + "video=HDMI-A-1:1024x768 at 60 "#else #define CONFIG_BOARD_NAME "General Electric BA16 Generic"#define CONFIG_DEFAULT_FDT_FILE "/boot/imx6q-ba16.dtb"@@ -166,7 +170,8 @@"echo 'U-Boot upgraded. Please reset'; " \"fi\0" \"setargs=setenv bootargs console=${console},${baudrate} " \ -"root=/dev/${rootdev} rw rootwait cma=128M\0" \
Quoted 9 lines
include/configs/ge_bx50v3.h line 177
Quoted 6 lines
include/configs/ge_bx50v3.h +2
-0+"root=/dev/${rootdev} rw rootwait cma=128M " \ +CONFIG_BOOTARGS_EXTRA "\0" \"loadbootscript=" \"ext2load ${dev} ${devnum}:${partnum} ${loadaddr} ${script};\0" \"bootscript=echo Running bootscript from ${dev}:${devnum}:${partnum};" \Applied to u-boot-imx, thanks !
But not pushed: in fact, this canoot be built anymore. You add a new CONFIG_ (but do you really need it ?), and this is not allowed anymore. It generates a build error because all CONFIG_ should be set via Kconfig.
arm: + ge_b850v3
+Error: You must add new CONFIG options using Kconfig +The following new ad-hoc CONFIG options were detected:
+CONFIG_BOOTARGS_EXTRA
+
I think it os ok if you rename it and let it as local #define in your configuration file.
Best regards,
Stefano Babic
Signature · 5 lines
===================================================================== DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de =====================================================================
PATCH 1/1 board: ge: bx50v3: Pass video bootargs for b850v3
Hi Stefano
Quoted 11 lines · Stefano Babic
But not pushed: in fact, this canoot be built anymore. You add a new
CONFIG_(but do you really need it ?), and this is not allowed anymore. It generates a build error because allCONFIG_should be set viaKconfig.arm: + ge_b850v3(quoted diff) +4
-0+Error: You must add new CONFIG options using Kconfig +The following new ad-hoc CONFIG options were detected: +CONFIG_BOOTARGS_EXTRA +
Quoted 2 lines
I think it os ok if you rename it and let it as local #define in your configuration file.
Thanks for the feedback, it makes sense to rename it as local #define. Have submitted v2 patch with the fix.
Thanks,
Akshay
PATCH 1/1 board: ge: bx50v3: Pass video bootargs for b850v3
Quoted 14 lines · Akshay Bhat
Hi Stefano
Quoted 11 lines · Stefano Babic
But not pushed: in fact, this canoot be built anymore. You add a new
CONFIG_(but do you really need it ?), and this is not allowed anymore. It generates a build error because allCONFIG_should be set viaKconfig.arm: + ge_b850v3(quoted diff) +4
-0+Error: You must add new CONFIG options using Kconfig +The following new ad-hoc CONFIG options were detected: +CONFIG_BOOTARGS_EXTRA +
Quoted 6 lines
Quoted 2 lines
I think it os ok if you rename it and let it as local #define in your configuration file.
Thanks for the feedback, it makes sense to rename it as local #define. Have submitted v2 patch with the fix.
Thanks to send the new version: I will apply it directly and it can be part of my PR (I want to send it today to Tom).
Best regards,
Stefano
Signature · 5 lines
===================================================================== DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de =====================================================================