From: Marek Vasut Date: Sat, 11 Sep 2021 22:39:58 +0000 (+0200) Subject: ARM: imx: mx5: Enable BMODE command on MX53 Menlo board X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=92f671899595e08a9698f1bc80aa20a6a16a7f6a;p=u-boot.git ARM: imx: mx5: Enable BMODE command on MX53 Menlo board The board can do primary/secondary boot switching, enable the bmode command. Signed-off-by: Marek Vasut Cc: Stefano Babic --- diff --git a/board/menlo/m53menlo/m53menlo.c b/board/menlo/m53menlo/m53menlo.c index 2b331b32df..9545e633a3 100644 --- a/board/menlo/m53menlo/m53menlo.c +++ b/board/menlo/m53menlo/m53menlo.c @@ -17,6 +17,7 @@ #include #include #include +#include #include #include #include @@ -334,6 +335,10 @@ int splash_screen_prepare(void) int board_late_init(void) { +#ifdef CONFIG_CMD_BMODE + add_board_boot_modes(NULL); +#endif + #if defined(CONFIG_VIDEO_IPUV3) struct udevice *dev; int xpos, ypos, ret; diff --git a/configs/m53menlo_defconfig b/configs/m53menlo_defconfig index 5500d8eaf0..5903ddd13e 100644 --- a/configs/m53menlo_defconfig +++ b/configs/m53menlo_defconfig @@ -22,7 +22,6 @@ CONFIG_SYS_BOOTCOUNT_ADDR=0x53FA401C CONFIG_SPL=y CONFIG_SYS_BOOTCOUNT_SINGLEWORD=y CONFIG_ENV_OFFSET_REDUND=0x180000 -# CONFIG_CMD_BMODE is not set CONFIG_SYS_LOAD_ADDR=0x70800000 CONFIG_FIT=y CONFIG_OF_BOARD_SETUP=y