[U-Boot] [PATCH v4 1/4] include: reset: check CONFIG_SPL_RESET_SUPPORT
Simon Glass
sjg at chromium.org
Fri Jun 1 14:26:08 UTC 2018
Hi,
On 1 June 2018 at 02:45, Ley Foon Tan <ley.foon.tan at intel.com> wrote:
> Add checking for CONFIG_SPL_RESET_SUPPORT to fix compilation error when
> CONFIG_DM_RESET is enabled but CONFIG_SPL_RESET_SUPPORT is disabled in SPL
> build.
>
> Signed-off-by: Ley Foon Tan <ley.foon.tan at intel.com>
> ---
> include/reset.h | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/include/reset.h b/include/reset.h
> index 201bafc..0ac0a47 100644
> --- a/include/reset.h
> +++ b/include/reset.h
> @@ -77,7 +77,8 @@ struct reset_ctl_bulk {
> unsigned int count;
> };
>
> -#ifdef CONFIG_DM_RESET
> +#if (!defined(CONFIG_SPL_BUILD) && defined(CONFIG_DM_RESET)) || \
> + (defined(CONFIG_SPL_RESET_SUPPORT) && defined(CONFIG_DM_RESET))
CONFIG_SPL_RESET_SUPPORT should move to Kconfig
Also it should be renamed to CONFIG_SPL_DM_RESET
so that you can use:
#if CONFIG_IS_ENABLED(DM_RESET)
> /**
> * reset_get_by_index - Get/request a reset signal by integer index.
> *
> --
> 2.2.2
>
Regards,
Simon
More information about the U-Boot
mailing list