[PATCH u-boot v2016.07-aspeed-openbmc] Add optional MTD and UBI support to ast-common
Andrew Jeffery
andrew at aj.id.au
Thu Aug 24 15:14:20 AEST 2017
On Wed, 2017-08-23 at 22:20 -0500, Adriana Kobylak wrote:
> 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>
Applied to v2016.07-aspeed-openbmc.
Thanks,
Andrew
> ---
> 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 */
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: This is a digitally signed message part
URL: <http://lists.ozlabs.org/pipermail/openbmc/attachments/20170824/239d198d/attachment.sig>
More information about the openbmc
mailing list