]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
spi: designware: Allow disabling designware driver in SPL
authorRalph Siemsen <ralph.siemsen@linaro.org>
Thu, 11 Dec 2025 16:05:23 +0000 (11:05 -0500)
committerTien Fong Chee <tien.fong.chee@intel.com>
Wed, 17 Dec 2025 10:50:31 +0000 (18:50 +0800)
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@linaro.org>
Reviewed-by: Sean Anderson <sean.anderson@seco.com>
drivers/spi/Kconfig
drivers/spi/Makefile

index 2afb15fff1e9c761981e3421088c55b1ac3c6474..e31db9d4e31b60dbc176e3f35b0cad56c4b74a9d 100644 (file)
@@ -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
index d5d1e5435881b00ed3064d522d99caab7f8b57f3..0dc2d23e172bb85dcbca581475283c07599dd129 100644 (file)
@@ -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