[U-Boot] [PATCH] apalis_imx6: add board_fit_config_name_match to support FIT in SPL

Max Krummenacher max.krummenacher at toradex.com
Tue Sep 3 12:58:07 UTC 2019


On Mon, 2019-09-02 at 18:23 -0300, Ricardo Salveti wrote:
> Only one dtb is currently supported, so match with imx6-apalis.
> 
> Signed-off-by: Ricardo Salveti <ricardo at foundries.io>
> ---
>  board/toradex/apalis_imx6/apalis_imx6.c | 10 ++++++++++
>  1 file changed, 10 insertions(+)
> 
> diff --git a/board/toradex/apalis_imx6/apalis_imx6.c b/board/toradex/apalis_imx6/apalis_imx6.c
> index fa7fcc8d46..ef668fcedc 100644
> --- a/board/toradex/apalis_imx6/apalis_imx6.c
> +++ b/board/toradex/apalis_imx6/apalis_imx6.c
> @@ -1121,6 +1121,16 @@ void board_init_f(ulong dummy)
>  	board_init_r(NULL, 0);
>  }
>  
> +#ifdef CONFIG_SPL_LOAD_FIT
> +int board_fit_config_name_match(const char *name)
> +{
> +	if (!strcmp(name, "imx6-apalis"))
> +		return 0;
> +
> +	return -1;
> +}
> +#endif
> +
>  void reset_cpu(ulong addr)
>  {
>  }

I assume that you do not want to switch on CONFIG_SPL_LOAD_FIT
(or OP-TEE) for the apalis_imx6_defconfig but do this rather as
a preparation for a board variant.

Acked-by: Max Krummenacher <max.krummenacher at toradex.com>


More information about the U-Boot mailing list