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

Steve Rae srae at broadcom.com
Sat Mar 12 01:52:21 CET 2016


Enable MTD support on Cygnus and NSP boards.

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

Changes in v2: None

 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 accf0a1..239c369 100644
--- a/arch/arm/include/asm/arch-bcmcygnus/configs.h
+++ b/arch/arm/include/asm/arch-bcmcygnus/configs.h
@@ -40,4 +40,10 @@
 #define CONFIG_SYS_MAX_NAND_CHIPS		1
 #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 e547d4a..e496fea 100644
--- a/arch/arm/include/asm/arch-bcmnsp/configs.h
+++ b/arch/arm/include/asm/arch-bcmnsp/configs.h
@@ -26,4 +26,10 @@
 #define CONFIG_SYS_MAX_NAND_CHIPS		1
 #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