1# SPDX-License-Identifier: GPL-2.0 2# 3# Makefile for kernel SPI drivers. 4# 5 6ccflags-$(CONFIG_SPI_DEBUG) := -DDEBUG 7 8# small core, mostly translating board-specific 9# config declarations into driver model code 10obj-$(CONFIG_SPI_MASTER) += spi.o 11obj-$(CONFIG_SPI_MEM) += spi-mem.o 12obj-$(CONFIG_SPI_MUX) += spi-mux.o 13obj-$(CONFIG_SPI_SPIDEV) += spidev.o 14obj-$(CONFIG_SPI_LOOPBACK_TEST) += spi-loopback-test.o 15 16# SPI master controller drivers (bus) 17obj-$(CONFIG_SPI_ALTERA) += spi-altera-platform.o 18obj-$(CONFIG_SPI_ALTERA_CORE) += spi-altera-core.o 19obj-$(CONFIG_SPI_ALTERA_DFL) += spi-altera-dfl.o 20obj-$(CONFIG_SPI_AR934X) += spi-ar934x.o 21obj-$(CONFIG_SPI_ARMADA_3700) += spi-armada-3700.o 22obj-$(CONFIG_SPI_ASPEED_SMC) += spi-aspeed-smc.o 23obj-$(CONFIG_SPI_ATMEL) += spi-atmel.o 24obj-$(CONFIG_SPI_ATMEL_QUADSPI) += atmel-quadspi.o 25obj-$(CONFIG_SPI_AT91_USART) += spi-at91-usart.o 26obj-$(CONFIG_SPI_ATH79) += spi-ath79.o 27obj-$(CONFIG_SPI_AU1550) += spi-au1550.o 28obj-$(CONFIG_SPI_AXI_SPI_ENGINE) += spi-axi-spi-engine.o 29obj-$(CONFIG_SPI_BCM2835) += spi-bcm2835.o 30obj-$(CONFIG_SPI_BCM2835AUX) += spi-bcm2835aux.o 31obj-$(CONFIG_SPI_BCM63XX) += spi-bcm63xx.o 32obj-$(CONFIG_SPI_BCM63XX_HSSPI) += spi-bcm63xx-hsspi.o 33obj-$(CONFIG_SPI_BCM_QSPI) += spi-iproc-qspi.o spi-brcmstb-qspi.o spi-bcm-qspi.o 34obj-$(CONFIG_SPI_BITBANG) += spi-bitbang.o 35obj-$(CONFIG_SPI_BUTTERFLY) += spi-butterfly.o 36obj-$(CONFIG_SPI_CADENCE) += spi-cadence.o 37obj-$(CONFIG_SPI_CADENCE_QUADSPI) += spi-cadence-quadspi.o 38obj-$(CONFIG_SPI_CADENCE_XSPI) += spi-cadence-xspi.o 39obj-$(CONFIG_SPI_CLPS711X) += spi-clps711x.o 40obj-$(CONFIG_SPI_COLDFIRE_QSPI) += spi-coldfire-qspi.o 41obj-$(CONFIG_SPI_DAVINCI) += spi-davinci.o 42obj-$(CONFIG_SPI_DLN2) += spi-dln2.o 43obj-$(CONFIG_SPI_DESIGNWARE) += spi-dw.o 44spi-dw-y := spi-dw-core.o 45spi-dw-$(CONFIG_SPI_DW_DMA) += spi-dw-dma.o 46obj-$(CONFIG_SPI_DW_BT1) += spi-dw-bt1.o 47obj-$(CONFIG_SPI_DW_MMIO) += spi-dw-mmio.o 48obj-$(CONFIG_SPI_DW_PCI) += spi-dw-pci.o 49obj-$(CONFIG_SPI_EP93XX) += spi-ep93xx.o 50obj-$(CONFIG_SPI_FALCON) += spi-falcon.o 51obj-$(CONFIG_SPI_FSI) += spi-fsi.o 52obj-$(CONFIG_SPI_FSL_CPM) += spi-fsl-cpm.o 53obj-$(CONFIG_SPI_FSL_DSPI) += spi-fsl-dspi.o 54obj-$(CONFIG_SPI_FSL_LIB) += spi-fsl-lib.o 55obj-$(CONFIG_SPI_FSL_ESPI) += spi-fsl-espi.o 56obj-$(CONFIG_SPI_FSL_LPSPI) += spi-fsl-lpspi.o 57obj-$(CONFIG_SPI_FSL_QUADSPI) += spi-fsl-qspi.o 58obj-$(CONFIG_SPI_FSL_SPI) += spi-fsl-spi.o 59obj-$(CONFIG_SPI_GPIO) += spi-gpio.o 60obj-$(CONFIG_SPI_GXP) += spi-gxp.o 61obj-$(CONFIG_SPI_HISI_KUNPENG) += spi-hisi-kunpeng.o 62obj-$(CONFIG_SPI_HISI_SFC_V3XX) += spi-hisi-sfc-v3xx.o 63obj-$(CONFIG_SPI_IMG_SPFI) += spi-img-spfi.o 64obj-$(CONFIG_SPI_IMX) += spi-imx.o 65obj-$(CONFIG_SPI_INGENIC) += spi-ingenic.o 66obj-$(CONFIG_SPI_INTEL) += spi-intel.o 67obj-$(CONFIG_SPI_INTEL_PCI) += spi-intel-pci.o 68obj-$(CONFIG_SPI_INTEL_PLATFORM) += spi-intel-platform.o 69obj-$(CONFIG_SPI_LANTIQ_SSC) += spi-lantiq-ssc.o 70obj-$(CONFIG_SPI_JCORE) += spi-jcore.o 71obj-$(CONFIG_SPI_LM70_LLP) += spi-lm70llp.o 72obj-$(CONFIG_SPI_LP8841_RTC) += spi-lp8841-rtc.o 73obj-$(CONFIG_SPI_MESON_SPICC) += spi-meson-spicc.o 74obj-$(CONFIG_SPI_MESON_SPIFC) += spi-meson-spifc.o 75obj-$(CONFIG_SPI_MICROCHIP_CORE) += spi-microchip-core.o 76obj-$(CONFIG_SPI_MPC512x_PSC) += spi-mpc512x-psc.o 77obj-$(CONFIG_SPI_MPC52xx_PSC) += spi-mpc52xx-psc.o 78obj-$(CONFIG_SPI_MPC52xx) += spi-mpc52xx.o 79obj-$(CONFIG_SPI_MT65XX) += spi-mt65xx.o 80obj-$(CONFIG_SPI_MT7621) += spi-mt7621.o 81obj-$(CONFIG_SPI_MTK_NOR) += spi-mtk-nor.o 82obj-$(CONFIG_SPI_MTK_SNFI) += spi-mtk-snfi.o 83obj-$(CONFIG_SPI_MXIC) += spi-mxic.o 84obj-$(CONFIG_SPI_MXS) += spi-mxs.o 85obj-$(CONFIG_SPI_NPCM_FIU) += spi-npcm-fiu.o 86obj-$(CONFIG_SPI_NPCM_PSPI) += spi-npcm-pspi.o 87obj-$(CONFIG_SPI_NXP_FLEXSPI) += spi-nxp-fspi.o 88obj-$(CONFIG_SPI_OC_TINY) += spi-oc-tiny.o 89spi-octeon-objs := spi-cavium.o spi-cavium-octeon.o 90obj-$(CONFIG_SPI_OCTEON) += spi-octeon.o 91obj-$(CONFIG_SPI_OMAP_UWIRE) += spi-omap-uwire.o 92obj-$(CONFIG_SPI_OMAP_100K) += spi-omap-100k.o 93obj-$(CONFIG_SPI_OMAP24XX) += spi-omap2-mcspi.o 94obj-$(CONFIG_SPI_TI_QSPI) += spi-ti-qspi.o 95obj-$(CONFIG_SPI_ORION) += spi-orion.o 96obj-$(CONFIG_SPI_PIC32) += spi-pic32.o 97obj-$(CONFIG_SPI_PIC32_SQI) += spi-pic32-sqi.o 98obj-$(CONFIG_SPI_PL022) += spi-pl022.o 99obj-$(CONFIG_SPI_PPC4xx) += spi-ppc4xx.o 100spi-pxa2xx-platform-objs := spi-pxa2xx.o spi-pxa2xx-dma.o 101obj-$(CONFIG_SPI_PXA2XX) += spi-pxa2xx-platform.o 102obj-$(CONFIG_SPI_PXA2XX_PCI) += spi-pxa2xx-pci.o 103obj-$(CONFIG_SPI_QCOM_GENI) += spi-geni-qcom.o 104obj-$(CONFIG_SPI_QCOM_QSPI) += spi-qcom-qspi.o 105obj-$(CONFIG_SPI_QUP) += spi-qup.o 106obj-$(CONFIG_SPI_ROCKCHIP) += spi-rockchip.o 107obj-$(CONFIG_SPI_ROCKCHIP_SFC) += spi-rockchip-sfc.o 108obj-$(CONFIG_SPI_RB4XX) += spi-rb4xx.o 109obj-$(CONFIG_MACH_REALTEK_RTL) += spi-realtek-rtl.o 110obj-$(CONFIG_SPI_RPCIF) += spi-rpc-if.o 111obj-$(CONFIG_SPI_RSPI) += spi-rspi.o 112obj-$(CONFIG_SPI_S3C24XX) += spi-s3c24xx-hw.o 113spi-s3c24xx-hw-y := spi-s3c24xx.o 114obj-$(CONFIG_SPI_S3C64XX) += spi-s3c64xx.o 115obj-$(CONFIG_SPI_SC18IS602) += spi-sc18is602.o 116obj-$(CONFIG_SPI_SH) += spi-sh.o 117obj-$(CONFIG_SPI_SH_HSPI) += spi-sh-hspi.o 118obj-$(CONFIG_SPI_SH_MSIOF) += spi-sh-msiof.o 119obj-$(CONFIG_SPI_SH_SCI) += spi-sh-sci.o 120obj-$(CONFIG_SPI_SIFIVE) += spi-sifive.o 121obj-$(CONFIG_SPI_SLAVE_MT27XX) += spi-slave-mt27xx.o 122obj-$(CONFIG_SPI_SPRD) += spi-sprd.o 123obj-$(CONFIG_SPI_SPRD_ADI) += spi-sprd-adi.o 124obj-$(CONFIG_SPI_STM32) += spi-stm32.o 125obj-$(CONFIG_SPI_STM32_QSPI) += spi-stm32-qspi.o 126obj-$(CONFIG_SPI_ST_SSC4) += spi-st-ssc4.o 127obj-$(CONFIG_SPI_SUN4I) += spi-sun4i.o 128obj-$(CONFIG_SPI_SUN6I) += spi-sun6i.o 129obj-$(CONFIG_SPI_SUNPLUS_SP7021) += spi-sunplus-sp7021.o 130obj-$(CONFIG_SPI_SYNQUACER) += spi-synquacer.o 131obj-$(CONFIG_SPI_TEGRA210_QUAD) += spi-tegra210-quad.o 132obj-$(CONFIG_SPI_TEGRA114) += spi-tegra114.o 133obj-$(CONFIG_SPI_TEGRA20_SFLASH) += spi-tegra20-sflash.o 134obj-$(CONFIG_SPI_TEGRA20_SLINK) += spi-tegra20-slink.o 135obj-$(CONFIG_SPI_TLE62X0) += spi-tle62x0.o 136spi-thunderx-objs := spi-cavium.o spi-cavium-thunderx.o 137obj-$(CONFIG_SPI_THUNDERX) += spi-thunderx.o 138obj-$(CONFIG_SPI_TOPCLIFF_PCH) += spi-topcliff-pch.o 139obj-$(CONFIG_SPI_UNIPHIER) += spi-uniphier.o 140obj-$(CONFIG_SPI_XCOMM) += spi-xcomm.o 141obj-$(CONFIG_SPI_XILINX) += spi-xilinx.o 142obj-$(CONFIG_SPI_XLP) += spi-xlp.o 143obj-$(CONFIG_SPI_XTENSA_XTFPGA) += spi-xtensa-xtfpga.o 144obj-$(CONFIG_SPI_ZYNQ_QSPI) += spi-zynq-qspi.o 145obj-$(CONFIG_SPI_ZYNQMP_GQSPI) += spi-zynqmp-gqspi.o 146obj-$(CONFIG_SPI_AMD) += spi-amd.o 147 148# SPI slave protocol handlers 149obj-$(CONFIG_SPI_SLAVE_TIME) += spi-slave-time.o 150obj-$(CONFIG_SPI_SLAVE_SYSTEM_CONTROL) += spi-slave-system-control.o 151