[U-Boot] [PATCH] imx6: don't include unneeded boot_mode array in SPL

The soc_boot_modes array is only used by bmode command and not needed in SPL. Don't include it into SPL.
Signed-off-by: Anatolij Gustschin agust@denx.de --- arch/arm/mach-imx/mx6/soc.c | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/arch/arm/mach-imx/mx6/soc.c b/arch/arm/mach-imx/mx6/soc.c index 9ede1f5..13ca286 100644 --- a/arch/arm/mach-imx/mx6/soc.c +++ b/arch/arm/mach-imx/mx6/soc.c @@ -551,6 +551,7 @@ void imx_get_mac_from_fuse(int dev_id, unsigned char *mac) } #endif
+#ifndef CONFIG_SPL_BUILD /* * cfg_val will be used for * Boot_cfg4[7:0]:Boot_cfg3[7:0]:Boot_cfg2[7:0]:Boot_cfg1[7:0] @@ -577,6 +578,7 @@ const struct boot_mode soc_boot_modes[] = { {"esdhc4", MAKE_CFGVAL(0x40, 0x38, 0x00, 0x00)}, {NULL, 0}, }; +#endif
void reset_misc(void) {

On 28/08/2017 17:51, Anatolij Gustschin wrote:
The soc_boot_modes array is only used by bmode command and not needed in SPL. Don't include it into SPL.
Signed-off-by: Anatolij Gustschin agust@denx.de
arch/arm/mach-imx/mx6/soc.c | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/arch/arm/mach-imx/mx6/soc.c b/arch/arm/mach-imx/mx6/soc.c index 9ede1f5..13ca286 100644 --- a/arch/arm/mach-imx/mx6/soc.c +++ b/arch/arm/mach-imx/mx6/soc.c @@ -551,6 +551,7 @@ void imx_get_mac_from_fuse(int dev_id, unsigned char *mac) } #endif
+#ifndef CONFIG_SPL_BUILD /*
- cfg_val will be used for
- Boot_cfg4[7:0]:Boot_cfg3[7:0]:Boot_cfg2[7:0]:Boot_cfg1[7:0]
@@ -577,6 +578,7 @@ const struct boot_mode soc_boot_modes[] = { {"esdhc4", MAKE_CFGVAL(0x40, 0x38, 0x00, 0x00)}, {NULL, 0}, }; +#endif
void reset_misc(void) {
Reviewed-by: Stefano Babic sbabic@denx.de
Best regards, Stefano Babic

On 28/08/2017 17:51, Anatolij Gustschin wrote:
The soc_boot_modes array is only used by bmode command and not needed in SPL. Don't include it into SPL.
Signed-off-by: Anatolij Gustschin agust@denx.de
arch/arm/mach-imx/mx6/soc.c | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/arch/arm/mach-imx/mx6/soc.c b/arch/arm/mach-imx/mx6/soc.c index 9ede1f5..13ca286 100644 --- a/arch/arm/mach-imx/mx6/soc.c +++ b/arch/arm/mach-imx/mx6/soc.c @@ -551,6 +551,7 @@ void imx_get_mac_from_fuse(int dev_id, unsigned char *mac) } #endif
+#ifndef CONFIG_SPL_BUILD /*
- cfg_val will be used for
- Boot_cfg4[7:0]:Boot_cfg3[7:0]:Boot_cfg2[7:0]:Boot_cfg1[7:0]
@@ -577,6 +578,7 @@ const struct boot_mode soc_boot_modes[] = { {"esdhc4", MAKE_CFGVAL(0x40, 0x38, 0x00, 0x00)}, {NULL, 0}, }; +#endif
void reset_misc(void) {
Applied to u-boot-imx, -master, thanks !
Best regards, Stefano Babic
participants (2)
-
Anatolij Gustschin
-
Stefano Babic