[U-Boot] [PATCH 3/4] arm: bcm: enable MTD support

Steve Rae srae at broadcom.com
Thu Mar 10 23:26:29 CET 2016


Enable MTD support on Cygnus and NSP boards.

Signed-off-by: Steve Rae <srae at broadcom.com>
---

 arch/arm/include/asm/arch-bcmcygnus/configs.h | 6 ++++++
 arch/arm/include/asm/arch-bcmnsp/configs.h    | 6 ++++++
 2 files changed, 12 insertions(+)

diff --git a/arch/arm/include/asm/arch-bcmcygnus/configs.h b/arch/arm/include/asm/arch-bcmcygnus/configs.h
index 3bf7395..40a9f0e 100644
--- a/arch/arm/include/asm/arch-bcmcygnus/configs.h
+++ b/arch/arm/include/asm/arch-bcmcygnus/configs.h
@@ -44,4 +44,10 @@
 #define CONFIG_SYS_NAND_SELF_INIT
 #define CONFIG_SYS_NAND_ONFI_DETECTION
 
+/* MTD configuration */
+#define CONFIG_MTD_DEVICE
+#define CONFIG_MTD_PARTITIONS
+#define CONFIG_CMD_MTDPARTS
+#define CONFIG_CMD_MTDPARTS_SPREAD
+
 #endif /* __ARCH_CONFIGS_H */
diff --git a/arch/arm/include/asm/arch-bcmnsp/configs.h b/arch/arm/include/asm/arch-bcmnsp/configs.h
index aeaea6a..ac4f69e 100644
--- a/arch/arm/include/asm/arch-bcmnsp/configs.h
+++ b/arch/arm/include/asm/arch-bcmnsp/configs.h
@@ -30,4 +30,10 @@
 #define CONFIG_SYS_NAND_SELF_INIT
 #define CONFIG_SYS_NAND_ONFI_DETECTION
 
+/* MTD configuration */
+#define CONFIG_MTD_DEVICE
+#define CONFIG_MTD_PARTITIONS
+#define CONFIG_CMD_MTDPARTS
+#define CONFIG_CMD_MTDPARTS_SPREAD
+
 #endif /* __ARCH_CONFIGS_H */
-- 
1.8.5



More information about the U-Boot mailing list