imx6: don't include unneeded boot_mode array in SPL
Subsystems (3)
PATCH 1/1 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.
--- arch/arm/mach-imx/mx6/soc.c | 2 ++ 1 file changed, 2 insertions(+)
arch/arm/mach-imx/mx6/soc.c +2 -0
@@ -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) {
Signature · 1 line
2.7.4
PATCH 1/1 imx6: don't include unneeded boot_mode array in SPL
Quoted 22 lines · Anatolij Gustschin
The
soc_boot_modesarray is only used by bmode command and not needed in SPL. Don't include it into SPL.Signed-off-by Anatolij Gustschin <[email protected]>--- arch/arm/mach-imx/mx6/soc.c | 2 ++ 1 file changed, 2 insertions(+)arch/arm/mach-imx/mx6/soc.c +1
-0@@ -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]
arch/arm/mach-imx/mx6/soc.c const struct boot_mode soc_boot_modes[] = { · line 584
Quoted 7 lines
arch/arm/mach-imx/mx6/soc.c +1
-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) {
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 imx6: don't include unneeded boot_mode array in SPL
In reply to Anatolij GustschinQuoted 22 lines · Anatolij Gustschin
The
soc_boot_modesarray is only used by bmode command and not needed in SPL. Don't include it into SPL.Signed-off-by Anatolij Gustschin <[email protected]>--- arch/arm/mach-imx/mx6/soc.c | 2 ++ 1 file changed, 2 insertions(+)arch/arm/mach-imx/mx6/soc.c +1
-0@@ -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]
arch/arm/mach-imx/mx6/soc.c const struct boot_mode soc_boot_modes[] = { · line 584
Quoted 7 lines
arch/arm/mach-imx/mx6/soc.c +1
-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
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 =====================================================================