]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
mx6: Expand bmode to support ecspi3 boot
authorFabio Estevam <festevam@denx.de>
Sat, 17 Aug 2024 19:13:13 +0000 (16:13 -0300)
committerFabio Estevam <festevam@gmail.com>
Fri, 23 Aug 2024 17:50:15 +0000 (14:50 -0300)
Currently, the bmode command only supports booting from ecspi1.

Expand it to also support booting from ecspi3.

Signed-off-by: Fabio Estevam <festevam@denx.de>
Acked-by: Peng Fan <peng.fan@nxp.com>
arch/arm/mach-imx/mx6/soc.c

index 3a3e01f3d0aafe97c116178afe548491800544ea..2c0c77e1a567916f3f8971aa34c6f09b578350ed 100644 (file)
@@ -585,6 +585,10 @@ const struct boot_mode soc_boot_modes[] = {
        {"ecspi1:1",    MAKE_CFGVAL(0x30, 0x00, 0x00, 0x18)},
        {"ecspi1:2",    MAKE_CFGVAL(0x30, 0x00, 0x00, 0x28)},
        {"ecspi1:3",    MAKE_CFGVAL(0x30, 0x00, 0x00, 0x38)},
+       {"ecspi3:0",    MAKE_CFGVAL(0x30, 0x00, 0x00, 0x0a)},
+       {"ecspi3:1",    MAKE_CFGVAL(0x30, 0x00, 0x00, 0x1a)},
+       {"ecspi3:2",    MAKE_CFGVAL(0x30, 0x00, 0x00, 0x2a)},
+       {"ecspi3:3",    MAKE_CFGVAL(0x30, 0x00, 0x00, 0x3a)},
        /* 4 bit bus width */
        {"esdhc1",      MAKE_CFGVAL(0x40, 0x20, 0x00, 0x00)},
        {"esdhc2",      MAKE_CFGVAL(0x40, 0x28, 0x00, 0x00)},