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

Andrew Jeffery andrew at aj.id.au
Thu Aug 24 11:34:02 AEST 2017


On Tue, 2017-08-15 at 21:09 -0500, Adriana Kobylak wrote:
> Add MTD and UBI support to the default g5 include, 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.
> 
> Signed-off-by: Adriana Kobylak <anoo at linux.vnet.ibm.com>
> ---
>  include/configs/ast-g5-ncsi.h | 10 ++++++++++
>  1 file changed, 10 insertions(+)
> 
> diff --git a/include/configs/ast-g5-ncsi.h b/include/configs/ast-g5-
> ncsi.h
> index 12d6684..b126e6e 100644
> --- a/include/configs/ast-g5-ncsi.h
> +++ b/include/configs/ast-g5-ncsi.h

I suggest we make this common to all platforms to reduce the configuration
headache. Putting the #defines in ast-g5-ncsi doesn't isolate the change to
Witherspoon, and I think we should avoid further fragmentation e.g. by
introducing a Witherspoon-specific configuration.

If other platforms need to recover the extra space required we can deal with
that on an as-needed basis in the future.

Cheers,

Andrew

> @@ -28,4 +28,14 @@
>  
>  #define CONFIG_HW_WATCHDOG
>  
> +/* MTD and UBI */
> +#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
> +
>  #endif	/* __AST_G5_NCSI_CONFIG_H */
-------------- 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/e33f77cc/attachment.sig>


More information about the openbmc mailing list