[PATCH v2] spi: designware: Allow disabling designware driver in SPL
Sean Anderson
sean.anderson at seco.com
Thu Dec 11 17:07:40 CET 2025
On 12/11/25 11:05, 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>
> ---
> Changes in v2:
> - defaut y if DESIGNWARE_SPI (Tom)
> - move out of the SPI/DM_SPI and add depends SPL_DM_SPI (Sean)
> - Link to v1: https://cas5-0-urlprotect.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2flore.kernel.org%2fr%2f20251208%2dspi%2ddesignware%2dspl%2dv1%2d1%2d21e6f519a4de%40linaro.org&umid=e83941c8-36b4-4867-97ac-ce962ab37278&rct=1765469141&auth=d807158c60b7d2502abde8a2fc01f40662980862-2e9feff7cf949797cd8f1fd98013073db7b6fb3c
> ---
> 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..e31db9d4e31 100644
> --- a/drivers/spi/Kconfig
> +++ b/drivers/spi/Kconfig
> @@ -677,6 +677,14 @@ config SH_QSPI
> Enable the Renesas Quad SPI controller driver. This driver can be
> used on Renesas SoCs.
>
> +config SPL_DESIGNWARE_SPI
> + bool "Designware SPI driver in SPL"
> + depends on SPL_DM_SPI
> + default y if DESIGNWARE_SPI
> + help
> + Enable the Designware SPI driver during SPL.
> + See the help of DESIGNWARE_SPI for details.
> +
> config MXC_SPI
> bool "MXC SPI Driver"
> depends on MACH_IMX
> 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>
>
Reviewed-by: Sean Anderson <sean.anderson at seco.com>
[CES 2026, SECO]<https://exhibitors.ces.tech/8_0/exhibitor/exhibitor-details.cfm?exhid=001Pp000010EbaOIAS>
More information about the U-Boot
mailing list