# SPDX-License-Identifier: GPL-2.0
#
# Makefile for kernel SPI drivers.
#
ccflags-$([31mCONFIG_SPI_DEBUG[0m) := -DDEBUG
# small core, mostly translating board-specific
# config declarations into driver model code
obj-$([31mCONFIG_SPI_MASTER[0m) += spi.o
obj-$([31mCONFIG_SPI_MEM[0m) += spi-mem.o
obj-$([31mCONFIG_SPI_SPIDEV[0m) += spidev.o
obj-$([31mCONFIG_SPI_LOOPBACK_TEST[0m) += spi-loopback-test.o
# SPI master controller drivers (bus)
obj-$([31mCONFIG_SPI_ALTERA[0m) += spi-altera.o
obj-$([31mCONFIG_SPI_ARMADA_3700[0m) += spi-armada-3700.o
obj-$([31mCONFIG_SPI_ATMEL[0m) += spi-atmel.o
obj-$([31mCONFIG_SPI_ATMEL_QUADSPI[0m) += atmel-quadspi.o
obj-$([31mCONFIG_SPI_AT91_USART[0m) += spi-at91-usart.o
obj-$([31mCONFIG_SPI_ATH79[0m) += spi-ath79.o
obj-$([31mCONFIG_SPI_AU1550[0m) += spi-au1550.o
obj-$([31mCONFIG_SPI_AXI_SPI_ENGINE[0m) += spi-axi-spi-engine.o
obj-$([31mCONFIG_SPI_BCM2835[0m) += spi-bcm2835.o
obj-$([31mCONFIG_SPI_BCM2835AUX[0m) += spi-bcm2835aux.o
obj-$([31mCONFIG_SPI_BCM63XX[0m) += spi-bcm63xx.o
obj-$([31mCONFIG_SPI_BCM63XX_HSSPI[0m) += spi-bcm63xx-hsspi.o
obj-$([31mCONFIG_SPI_BCM_QSPI[0m) += spi-iproc-qspi.o spi-brcmstb-qspi.o spi-bcm-qspi.o
obj-$([31mCONFIG_SPI_BITBANG[0m) += spi-bitbang.o
obj-$([31mCONFIG_SPI_BUTTERFLY[0m) += spi-butterfly.o
obj-$([31mCONFIG_SPI_CADENCE[0m) += spi-cadence.o
obj-$([31mCONFIG_SPI_CLPS711X[0m) += spi-clps711x.o
obj-$([31mCONFIG_SPI_COLDFIRE_QSPI[0m) += spi-coldfire-qspi.o
obj-$([31mCONFIG_SPI_DAVINCI[0m) += spi-davinci.o
obj-$([31mCONFIG_SPI_DLN2[0m) += spi-dln2.o
obj-$([31mCONFIG_SPI_DESIGNWARE[0m) += spi-dw.o
obj-$([31mCONFIG_SPI_DW_MMIO[0m) += spi-dw-mmio.o
obj-$([31mCONFIG_SPI_DW_PCI[0m) += spi-dw-midpci.o
spi-dw-midpci-objs := spi-dw-pci.o spi-dw-mid.o
obj-$([31mCONFIG_SPI_EFM32[0m) += spi-efm32.o
obj-$([31mCONFIG_SPI_EP93XX[0m) += spi-ep93xx.o
obj-$([31mCONFIG_SPI_FALCON[0m) += spi-falcon.o
obj-$([31mCONFIG_SPI_FSL_CPM[0m) += spi-fsl-cpm.o
obj-$([31mCONFIG_SPI_FSL_DSPI[0m) += spi-fsl-dspi.o
obj-$([31mCONFIG_SPI_FSL_LIB[0m) += spi-fsl-lib.o
obj-$([31mCONFIG_SPI_FSL_ESPI[0m) += spi-fsl-espi.o
obj-$([31mCONFIG_SPI_FSL_LPSPI[0m) += spi-fsl-lpspi.o
obj-$([31mCONFIG_SPI_FSL_QUADSPI[0m) += spi-fsl-qspi.o
obj-$([31mCONFIG_SPI_FSL_SPI[0m) += spi-fsl-spi.o
obj-$([31mCONFIG_SPI_GPIO[0m) += spi-gpio.o
obj-$([31mCONFIG_SPI_IMG_SPFI[0m) += spi-img-spfi.o
obj-$([31mCONFIG_SPI_IMX[0m) += spi-imx.o
obj-$([31mCONFIG_SPI_LANTIQ_SSC[0m) += spi-lantiq-ssc.o
obj-$([31mCONFIG_SPI_JCORE[0m) += spi-jcore.o
obj-$([31mCONFIG_SPI_LM70_LLP[0m) += spi-lm70llp.o
obj-$([31mCONFIG_SPI_LP8841_RTC[0m) += spi-lp8841-rtc.o
obj-$([31mCONFIG_SPI_MESON_SPICC[0m) += spi-meson-spicc.o
obj-$([31mCONFIG_SPI_MESON_SPIFC[0m) += spi-meson-spifc.o
obj-$([31mCONFIG_SPI_MPC512x_PSC[0m) += spi-mpc512x-psc.o
obj-$([31mCONFIG_SPI_MPC52xx_PSC[0m) += spi-mpc52xx-psc.o
obj-$([31mCONFIG_SPI_MPC52xx[0m) += spi-mpc52xx.o
obj-$([31mCONFIG_SPI_MT65XX[0m) += spi-mt65xx.o
obj-$([31mCONFIG_SPI_MT7621[0m) += spi-mt7621.o
obj-$([31mCONFIG_SPI_MXIC[0m) += spi-mxic.o
obj-$([31mCONFIG_SPI_MXS[0m) += spi-mxs.o
obj-$([31mCONFIG_SPI_NPCM_FIU[0m) += spi-npcm-fiu.o
obj-$([31mCONFIG_SPI_NPCM_PSPI[0m) += spi-npcm-pspi.o
obj-$([31mCONFIG_SPI_NXP_FLEXSPI[0m) += spi-nxp-fspi.o
obj-$([31mCONFIG_SPI_OC_TINY[0m) += spi-oc-tiny.o
spi-octeon-objs := spi-cavium.o spi-cavium-octeon.o
obj-$([31mCONFIG_SPI_OCTEON[0m) += spi-octeon.o
obj-$([31mCONFIG_SPI_OMAP_UWIRE[0m) += spi-omap-uwire.o
obj-$([31mCONFIG_SPI_OMAP_100K[0m) += spi-omap-100k.o
obj-$([31mCONFIG_SPI_OMAP24XX[0m) += spi-omap2-mcspi.o
obj-$([31mCONFIG_SPI_TI_QSPI[0m) += spi-ti-qspi.o
obj-$([31mCONFIG_SPI_ORION[0m) += spi-orion.o
obj-$([31mCONFIG_SPI_PIC32[0m) += spi-pic32.o
obj-$([31mCONFIG_SPI_PIC32_SQI[0m) += spi-pic32-sqi.o
obj-$([31mCONFIG_SPI_PL022[0m) += spi-pl022.o
obj-$([31mCONFIG_SPI_PPC4xx[0m) += spi-ppc4xx.o
spi-pxa2xx-platform-objs := spi-pxa2xx.o spi-pxa2xx-dma.o
obj-$([31mCONFIG_SPI_PXA2XX[0m) += spi-pxa2xx-platform.o
obj-$([31mCONFIG_SPI_PXA2XX_PCI[0m) += spi-pxa2xx-pci.o
obj-$([31mCONFIG_SPI_QCOM_GENI[0m) += spi-geni-qcom.o
obj-$([31mCONFIG_SPI_QCOM_QSPI[0m) += spi-qcom-qspi.o
obj-$([31mCONFIG_SPI_QUP[0m) += spi-qup.o
obj-$([31mCONFIG_SPI_ROCKCHIP[0m) += spi-rockchip.o
obj-$([31mCONFIG_SPI_RB4XX[0m) += spi-rb4xx.o
obj-$([31mCONFIG_SPI_RSPI[0m) += spi-rspi.o
obj-$([31mCONFIG_SPI_S3C24XX[0m) += spi-s3c24xx-hw.o
spi-s3c24xx-hw-y := spi-s3c24xx.o
spi-s3c24xx-hw-$([31mCONFIG_SPI_S3C24XX_FIQ[0m) += spi-s3c24xx-fiq.o
obj-$([31mCONFIG_SPI_S3C64XX[0m) += spi-s3c64xx.o
obj-$([31mCONFIG_SPI_SC18IS602[0m) += spi-sc18is602.o
obj-$([31mCONFIG_SPI_SH[0m) += spi-sh.o
obj-$([31mCONFIG_SPI_SH_HSPI[0m) += spi-sh-hspi.o
obj-$([31mCONFIG_SPI_SH_MSIOF[0m) += spi-sh-msiof.o
obj-$([31mCONFIG_SPI_SH_SCI[0m) += spi-sh-sci.o
obj-$([31mCONFIG_SPI_SIFIVE[0m) += spi-sifive.o
obj-$([31mCONFIG_SPI_SIRF[0m) += spi-sirf.o
obj-$([31mCONFIG_SPI_SLAVE_MT27XX[0m) += spi-slave-mt27xx.o
obj-$([31mCONFIG_SPI_SPRD[0m) += spi-sprd.o
obj-$([31mCONFIG_SPI_SPRD_ADI[0m) += spi-sprd-adi.o
obj-$([31mCONFIG_SPI_STM32[0m) += spi-stm32.o
obj-$([31mCONFIG_SPI_STM32_QSPI[0m) += spi-stm32-qspi.o
obj-$([31mCONFIG_SPI_ST_SSC4[0m) += spi-st-ssc4.o
obj-$([31mCONFIG_SPI_SUN4I[0m) += spi-sun4i.o
obj-$([31mCONFIG_SPI_SUN6I[0m) += spi-sun6i.o
obj-$([31mCONFIG_SPI_SYNQUACER[0m) += spi-synquacer.o
obj-$([31mCONFIG_SPI_TEGRA114[0m) += spi-tegra114.o
obj-$([31mCONFIG_SPI_TEGRA20_SFLASH[0m) += spi-tegra20-sflash.o
obj-$([31mCONFIG_SPI_TEGRA20_SLINK[0m) += spi-tegra20-slink.o
obj-$([31mCONFIG_SPI_TLE62X0[0m) += spi-tle62x0.o
spi-thunderx-objs := spi-cavium.o spi-cavium-thunderx.o
obj-$([31mCONFIG_SPI_THUNDERX[0m) += spi-thunderx.o
obj-$([31mCONFIG_SPI_TOPCLIFF_PCH[0m) += spi-topcliff-pch.o
obj-$([31mCONFIG_SPI_TXX9[0m) += spi-txx9.o
obj-$([31mCONFIG_SPI_UNIPHIER[0m) += spi-uniphier.o
obj-$([31mCONFIG_SPI_XCOMM[0m) += spi-xcomm.o
obj-$([31mCONFIG_SPI_XILINX[0m) += spi-xilinx.o
obj-$([31mCONFIG_SPI_XLP[0m) += spi-xlp.o
obj-$([31mCONFIG_SPI_XTENSA_XTFPGA[0m) += spi-xtensa-xtfpga.o
obj-$([31mCONFIG_SPI_ZYNQ_QSPI[0m) += spi-zynq-qspi.o
obj-$([31mCONFIG_SPI_ZYNQMP_GQSPI[0m) += spi-zynqmp-gqspi.o
# SPI slave protocol handlers
obj-$([31mCONFIG_SPI_SLAVE_TIME[0m) += spi-slave-time.o
obj-$([31mCONFIG_SPI_SLAVE_SYSTEM_CONTROL[0m) += spi-slave-system-control.o