From 1b3fb9515dcd280fca764b2521f152ca04d04701 Mon Sep 17 00:00:00 2001 From: Adriana Kobylak Date: Wed, 23 Aug 2017 22:20:08 -0500 Subject: Add optional MTD and UBI support to ast-common 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 Signed-off-by: Andrew Jeffery --- include/configs/ast-common.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'include/configs/ast-common.h') 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 */ -- cgit v1.2.1