[PATCH u-boot v2016.07-aspeed-openbmc] Add optional MTD and UBI support to ast-common

Adriana Kobylak anoo at linux.vnet.ibm.com
Thu Aug 24 13:20:08 AEST 2017


Add MTD and UBI support conditioned to having MTDPARTS_DEFAULT defined.
This allows platforms to enable this support if desired without
adding it by default since it increases the size of u-boot by about 70kB.

Signed-off-by: Adriana Kobylak <anoo at linux.vnet.ibm.com>
---
 include/configs/ast-common.h | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/include/configs/ast-common.h b/include/configs/ast-common.h
index 110c780..29551ef 100644
--- a/include/configs/ast-common.h
+++ b/include/configs/ast-common.h
@@ -84,6 +84,18 @@
 #define CONFIG_SYS_MAXARGS		16
 #define CONFIG_SYS_BARGSIZE		CONFIG_SYS_CBSIZE
 
+/*
+ * Optional MTD and UBI support
+ */
+#ifdef MTDPARTS_DEFAULT
+#define CONFIG_FLASH_CFI_MTD
+#define CONFIG_CMD_UBI
+#define CONFIG_RBTREE
+#define CONFIG_MTD_DEVICE
+#define CONFIG_MTD_PARTITIONS
+#define CONFIG_CMD_MTDPARTS
+#endif
+
 #define CONFIG_BOOTARGS			"console=ttyS4,115200n8 root=/dev/ram rw"
 
 #define CONFIG_AST_SPI_NOR    /* AST SPI NOR Flash */
-- 
1.8.2.2



More information about the openbmc mailing list