diff options
author | Adriana Kobylak <anoo@linux.vnet.ibm.com> | 2017-08-23 22:20:08 -0500 |
---|---|---|
committer | Andrew Jeffery <andrew@aj.id.au> | 2017-08-24 13:50:23 +0930 |
commit | 1b3fb9515dcd280fca764b2521f152ca04d04701 (patch) | |
tree | 984ca0249625fc68222b4fe46d5947da9b6812bf /include/configs | |
parent | 4b96bad5f6f69b838b7a7b660f66fcaed84aa37a (diff) | |
download | talos-obmc-uboot-1b3fb9515dcd280fca764b2521f152ca04d04701.tar.gz talos-obmc-uboot-1b3fb9515dcd280fca764b2521f152ca04d04701.zip |
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 <anoo@linux.vnet.ibm.com>
Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
Diffstat (limited to 'include/configs')
-rw-r--r-- | include/configs/ast-common.h | 12 |
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 */ |