[PATCH] spi: designware: Allow disabling designware driver in SPL

Sean Anderson sean.anderson at seco.com
Mon Dec 8 23:55:33 CET 2025


On 12/8/25 15:47, Ralph Siemsen wrote:
> To reduce SPL size, make it possible to exclude designware driver,
> while keeping it enabled in the main u-boot.
> 
> Signed-off-by: Ralph Siemsen <ralph.siemsen at linaro.org>
> ---
>  drivers/spi/Kconfig  | 8 ++++++++
>  drivers/spi/Makefile | 2 +-
>  2 files changed, 9 insertions(+), 1 deletion(-)
> 
> diff --git a/drivers/spi/Kconfig b/drivers/spi/Kconfig
> index 2afb15fff1e..94054ba39b0 100644
> --- a/drivers/spi/Kconfig
> +++ b/drivers/spi/Kconfig
> @@ -223,6 +223,14 @@ config DESIGNWARE_SPI
>  	  access the SPI NOR flash on platforms embedding this Designware
>  	  IP core.
>  
> +config SPL_DESIGNWARE_SPI
> +	bool "Designware SPI driver in SPL"
> +	depends on SPL
> +	default y
> +	help
> +	  Enable the Designware SPI driver during SPL.
> +	  See the help of DESIGNWARE_SPI for details.
> +

In addition to Tom's comment this should probably be moved out of the
SPI/DM_SPI if/endif and made to depend on SPL_DM_SPI.

>  config EXYNOS_SPI
>  	bool "Samsung Exynos SPI driver"
>  	depends on ARCH_EXYNOS
> diff --git a/drivers/spi/Makefile b/drivers/spi/Makefile
> index d5d1e543588..0dc2d23e172 100644
> --- a/drivers/spi/Makefile
> +++ b/drivers/spi/Makefile
> @@ -35,7 +35,7 @@ obj-$(CONFIG_CF_SPI) += cf_spi.o
>  obj-$(CONFIG_CORTINA_SFLASH) += ca_sflash.o
>  obj-$(CONFIG_CV1800B_SPIF) += cv1800b_spif.o
>  obj-$(CONFIG_DAVINCI_SPI) += davinci_spi.o
> -obj-$(CONFIG_DESIGNWARE_SPI) += designware_spi.o
> +obj-$(CONFIG_$(PHASE_)DESIGNWARE_SPI) += designware_spi.o
>  obj-$(CONFIG_EXYNOS_SPI) += exynos_spi.o
>  obj-$(CONFIG_FSL_DSPI) += fsl_dspi.o
>  obj-$(CONFIG_FSL_ESPI) += fsl_espi.o
> 
> ---
> base-commit: 0e0a198a68be71148f5ec27ef86796174f91436f
> change-id: 20251208-spi-designware-spl-d85d6a26e5e9
> 
> Best regards,
> --  
> Ralph Siemsen <ralph.siemsen at linaro.org>
> 


More information about the U-Boot mailing list