fix: mmc: a38x,a39x: disabled legacy commands for MMC boot mode
- MMC/SD boot mode was added recently to supported boot options
- legacy marvell commands, such as stage boot, rcvr, etc, were not
supporting MMC initially(only SPI/NAND).
Ehen compiling image for mmc without NAND/SPU support,
received compilation warnings and errors.
- This patch disable legacy and unsupported commands by MMC, when
SPI and NAND not supported
Change-Id: I735fd822bfdc494701c22c248c2d5c90f16ee72e
Signed-off-by: Omri Itach <omrii@marvell.com>
Reviewed-on: http://vgitil04.il.marvell.com:8080/23489
Tested-by: Star_Automation <star@marvell.com>
Reviewed-by: Hanna Hawa <hannah@marvell.com>
Reviewed-by: Bassel Saba <basselsa@marvell.com>
Tested-by: Bassel Saba <basselsa@marvell.com>
diff --git a/include/configs/armada_38x.h b/include/configs/armada_38x.h
index 8adb219..3bfe102 100644
--- a/include/configs/armada_38x.h
+++ b/include/configs/armada_38x.h
@@ -163,6 +163,7 @@
#define CONFIG_CMD_RCVR
#define CONFIG_CMD_BOOT_MENU
#define CONFIG_CMD_SYS_RESTORE
+
/* Open this define for enabling Secure Boot Mode eFuses modification
#define CONFIG_CMD_EFUSE
*/
@@ -556,6 +557,14 @@
//#define CONFIG_MMC_TRACE
/* Boot from MMC settings */
#if defined(MV_MMC_BOOT)
+/* the following commands are supported only with SPI/NAND interfaces */
+#if (!defined(MV_INCLUDE_SPI) && !defined(MV_NAND))
+ #undef CONFIG_CMD_SOURCE /* cmd_mvsource.c supports script burning to SPI/NAND only */
+ #undef CONFIG_CMD_STAGE_BOOT
+ #undef CONFIG_CMD_RCVR
+ #undef CONFIG_CMD_BOOT_MENU
+ #undef CONFIG_CMD_SYS_RESTORE
+#endif
#define CONFIG_ENV_IS_IN_MMC /* Environment is at absolute location (RAW) */
// #define CONFIG_ENV_IS_IN_FAT /* Environment is in file on FAT partition */
// #define CONFIG_FAT_WRITE