[U-Boot] [PATCH 05/13] dra7xx_evm: qspi: do not define DM_SPI and DM_SPI_FLASH for spl

Simon Glass sjg at chromium.org
Thu Oct 29 18:17:57 CET 2015


Hi Mugunthan,

On 27 October 2015 at 05:13, Mugunthan V N <mugunthanvnm at ti.com> wrote:
> Since spl doesn't support DM currently, do not define DM_SPI and
> DM_SPI_FLASH for spl build.

SPL does support driver model. I'm not sure what this change is trying to do.

>
> Signed-off-by: Mugunthan V N <mugunthanvnm at ti.com>
> ---
>  include/configs/dra7xx_evm.h | 5 +++++
>  1 file changed, 5 insertions(+)
>
> diff --git a/include/configs/dra7xx_evm.h b/include/configs/dra7xx_evm.h
> index 6e32de8..525dce7 100644
> --- a/include/configs/dra7xx_evm.h
> +++ b/include/configs/dra7xx_evm.h
> @@ -131,6 +131,11 @@
>  #define CONFIG_DEFAULT_SPI_MODE                SPI_MODE_3
>  #define CONFIG_QSPI_QUAD_SUPPORT
>
> +#ifdef CONFIG_SPL_BUILD
> +#undef CONFIG_DM_SPI
> +#undef CONFIG_DM_SPI_FLASH
> +#endif
> +
>  /*
>   * Default to using SPI for environment, etc.
>   * 0x000000 - 0x010000 : QSPI.SPL (64KiB)
> --
> 2.6.2.280.g74301d6
>

Regards,
Simon


More information about the U-Boot mailing list