[U-Boot] [PATCH 1/3] spi: Kconfig: Mark CONFIG_SPI as Legacy spi support
Vignesh R
vigneshr at ti.com
Tue Feb 12 08:03:39 UTC 2019
On 09/02/19 5:45 PM, Jagan Teki wrote:
> CONFIG_SPI is mandatory for SPI support even if the given board
> has dm or non-dm versions, so mark CONFIG_SPI as non-dm config
> option and move the respective non-dm drivers below to that.
>
> This eventually reduce the explicit CONFIG_SPI enablement for
> dm version spi drivers.
>
> Cc: Vignesh R <vigneshr at ti.com>
> Signed-off-by: Jagan Teki <jagan at amarulasolutions.com>
Acked-by: Vignesh R <vigneshr at ti.com>
> ---
> drivers/spi/Kconfig | 17 ++++++++++++-----
> 1 file changed, 12 insertions(+), 5 deletions(-)
>
> diff --git a/drivers/spi/Kconfig b/drivers/spi/Kconfig
> index 2fb4862c4a..bed279cbc4 100644
> --- a/drivers/spi/Kconfig
> +++ b/drivers/spi/Kconfig
> @@ -1,7 +1,4 @@
> -menuconfig SPI
> - bool "SPI Support"
> -
> -if SPI
> +menu "SPI Support"
>
> config DM_SPI
> bool "Enable Driver Model for SPI drivers"
> @@ -294,6 +291,14 @@ config ZYNQMP_GQSPI
>
> endif # if DM_SPI
>
> +config SPI
> + bool "Legacy SPI support"
> + help
> + Enable the legacy SPI support. This will include legacy SPI
> + interface code for non-dm SPI drivers.
> +
> +if SPI
> +
> config SOFT_SPI
> bool "Soft SPI driver"
> help
> @@ -387,4 +392,6 @@ config OMAP3_SPI
> (McSPI). This driver be used to access SPI chips on platforms
> embedding this OMAP3 McSPI IP core.
>
> -endif # menu "SPI Support"
> +endif # if SPI
> +
> +endmenu # menu "SPI Support"
>
--
Regards
Vignesh
More information about the U-Boot
mailing list