]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
ARM: stm32: Set stdio to serial on DH STM32MP15xx DHSOM
authorMarek Vasut <marex@denx.de>
Sat, 13 Jan 2024 17:57:27 +0000 (18:57 +0100)
committerPatrice Chotard <patrice.chotard@foss.st.com>
Fri, 19 Jan 2024 14:07:12 +0000 (15:07 +0100)
In case CONSOLE_MUX and SYS_CONSOLE_IS_IN_ENV are enabled, the console
stdin, stdout, stderr must be defined in environment. Define the default
settings to fix the following warning on boot:

"
In:    No input devices available!
Out:   No output devices available!
Err:   No error devices available!
"

Sort the default environment as well.

Signed-off-by: Marek Vasut <marex@denx.de>
Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
include/configs/stm32mp15_dh_dhsom.h

index 8ff882264f44876cb9299ee681687a6cf4802db6..de39b19219d392349c63a6ff17fc973efc1ce6e3 100644 (file)
 #define PHY_ANEG_TIMEOUT               20000
 
 #ifdef CONFIG_SPL_BUILD
-#define CFG_EXTRA_ENV_SETTINGS                                 \
+#define CFG_EXTRA_ENV_SETTINGS                                         \
        "dfu_alt_info_ram=u-boot.itb ram "                              \
                        __stringify(CONFIG_SPL_LOAD_FIT_ADDRESS)        \
                        " 0x800000\0"
 #endif
 
-#define STM32MP_BOARD_EXTRA_ENV \
-       "usb_pgood_delay=1000\0" \
+#define STM32MP_BOARD_EXTRA_ENV                                                \
        "dh_update_sd_to_emmc=" /* Install U-Boot from SD to eMMC */    \
                "setexpr loadaddr1 ${loadaddr} + 0x1000000 && "         \
                "load mmc 0:4 ${loadaddr1} boot/u-boot-spl.stm32 && "   \
                "sf update ${loadaddr1} 0x40000 ${filesize1} && "       \
                "sf update ${loadaddr} 0x80000 ${filesize} && "         \
                "env set filesize1 && env set loadaddr1\0"              \
-       "update_sf=run dh_update_sd_to_sf\0"
+       "stdin=serial\0"                                                \
+       "stdout=serial\0"                                               \
+       "stderr=serial\0"                                               \
+       "update_sf=run dh_update_sd_to_sf\0"                            \
+       "usb_pgood_delay=1000\0"
 
 
 #include <configs/stm32mp15_common.h>