summaryrefslogtreecommitdiffstats
path: root/include/configs/ast-common.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/configs/ast-common.h')
-rw-r--r--include/configs/ast-common.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/configs/ast-common.h b/include/configs/ast-common.h
index 110c780070..89b0cd8533 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 */
OpenPOWER on IntegriCloud