[U-Boot] [RFC PATCH v3 3/4] arm: bcm: enable MTD support
Steve Rae
srae at broadcom.com
Sat Mar 12 23:48:06 CET 2016
Enable MTD support on Cygnus and NSP boards.
Signed-off-by: Steve Rae <srae at broadcom.com>
---
Changes in v3: None
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 2c75cb9..1edcbd7 100644
--- a/arch/arm/include/asm/arch-bcmcygnus/configs.h
+++ b/arch/arm/include/asm/arch-bcmcygnus/configs.h
@@ -31,4 +31,10 @@
#define CONFIG_CMD_PING
#define CONFIG_CMD_MII
+/* 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 d170e16..ec326b3 100644
--- a/arch/arm/include/asm/arch-bcmnsp/configs.h
+++ b/arch/arm/include/asm/arch-bcmnsp/configs.h
@@ -17,4 +17,10 @@
#define CONFIG_CONS_INDEX 1
#define CONFIG_SYS_NS16550_COM1 0x18000300
+/* 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