blob: dd7393a6046fa434831ffd02d97c94bedf4ee873 [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001# SPDX-License-Identifier: GPL-2.0
David Brownell8ae12a02006-01-08 13:34:19 -08002#
3# Makefile for kernel SPI drivers.
4#
5
matt mooneyfadcf492010-09-24 12:17:32 -07006ccflags-$(CONFIG_SPI_DEBUG) := -DDEBUG
David Brownell8ae12a02006-01-08 13:34:19 -08007
8# small core, mostly translating board-specific
9# config declarations into driver model code
10obj-$(CONFIG_SPI_MASTER) += spi.o
Boris Brezillonc36ff262018-04-26 18:18:14 +020011obj-$(CONFIG_SPI_MEM) += spi-mem.o
Chris Packhame9e40542020-02-04 16:28:38 +130012obj-$(CONFIG_SPI_MUX) += spi-mux.o
Grant Likelyca632f52011-06-06 01:16:30 -060013obj-$(CONFIG_SPI_SPIDEV) += spidev.o
Martin Sperl97896192015-11-27 16:17:21 +000014obj-$(CONFIG_SPI_LOOPBACK_TEST) += spi-loopback-test.o
David Brownell8ae12a02006-01-08 13:34:19 -080015
16# SPI master controller drivers (bus)
Matthew Gerlachb0c3d932021-04-16 09:57:19 -070017obj-$(CONFIG_SPI_ALTERA) += spi-altera-platform.o
18obj-$(CONFIG_SPI_ALTERA_CORE) += spi-altera-core.o
Matthew Gerlachba2fc162021-04-16 09:57:20 -070019obj-$(CONFIG_SPI_ALTERA_DFL) += spi-altera-dfl.o
Chuanhong Guo047980c2020-02-10 11:41:51 +080020obj-$(CONFIG_SPI_AR934X) += spi-ar934x.o
Romain Perier5762ab72016-12-08 15:58:44 +010021obj-$(CONFIG_SPI_ARMADA_3700) += spi-armada-3700.o
Grant Likelyca632f52011-06-06 01:16:30 -060022obj-$(CONFIG_SPI_ATMEL) += spi-atmel.o
Piotr Bugalski0e6aae02018-11-05 11:36:24 +010023obj-$(CONFIG_SPI_ATMEL_QUADSPI) += atmel-quadspi.o
Radu Pireae1892542018-07-13 19:47:35 +030024obj-$(CONFIG_SPI_AT91_USART) += spi-at91-usart.o
Grant Likelyca632f52011-06-06 01:16:30 -060025obj-$(CONFIG_SPI_ATH79) += spi-ath79.o
26obj-$(CONFIG_SPI_AU1550) += spi-au1550.o
Lars-Peter Clausenb1353d12016-02-04 17:13:30 +010027obj-$(CONFIG_SPI_AXI_SPI_ENGINE) += spi-axi-spi-engine.o
Chris Bootf8043872013-03-11 21:38:24 -060028obj-$(CONFIG_SPI_BCM2835) += spi-bcm2835.o
Martin Sperl1ea29b32015-09-11 11:22:04 +000029obj-$(CONFIG_SPI_BCM2835AUX) += spi-bcm2835aux.o
Florian Fainellib42dfed2012-02-01 11:14:09 +010030obj-$(CONFIG_SPI_BCM63XX) += spi-bcm63xx.o
Jonas Gorski142168e2013-11-30 12:42:06 +010031obj-$(CONFIG_SPI_BCM63XX_HSSPI) += spi-bcm63xx-hsspi.o
Kamal Dasucc20a382016-08-24 18:04:29 -040032obj-$(CONFIG_SPI_BCM_QSPI) += spi-iproc-qspi.o spi-brcmstb-qspi.o spi-bcm-qspi.o
Grant Likelyca632f52011-06-06 01:16:30 -060033obj-$(CONFIG_SPI_BITBANG) += spi-bitbang.o
34obj-$(CONFIG_SPI_BUTTERFLY) += spi-butterfly.o
Harini Katakamc474b382014-04-14 14:36:53 +053035obj-$(CONFIG_SPI_CADENCE) += spi-cadence.o
Ramuthevar Vadivel Murugan31fb6322020-06-01 12:34:44 +053036obj-$(CONFIG_SPI_CADENCE_QUADSPI) += spi-cadence-quadspi.o
Parshuram Thombarea16cc802021-09-19 10:05:34 +020037obj-$(CONFIG_SPI_CADENCE_XSPI) += spi-cadence-xspi.o
Alexander Shiyan161b96c2012-11-07 21:30:29 +040038obj-$(CONFIG_SPI_CLPS711X) += spi-clps711x.o
Grant Likelyca632f52011-06-06 01:16:30 -060039obj-$(CONFIG_SPI_COLDFIRE_QSPI) += spi-coldfire-qspi.o
40obj-$(CONFIG_SPI_DAVINCI) += spi-davinci.o
Laurentiu Palcu3d8c0d742014-12-08 15:52:29 +020041obj-$(CONFIG_SPI_DLN2) += spi-dln2.o
Grant Likelyca632f52011-06-06 01:16:30 -060042obj-$(CONFIG_SPI_DESIGNWARE) += spi-dw.o
Serge Semin77ccff82020-05-29 16:11:58 +030043spi-dw-y := spi-dw-core.o
Serge Semin6c710c02020-05-29 16:11:59 +030044spi-dw-$(CONFIG_SPI_DW_DMA) += spi-dw-dma.o
Serge Seminabf00902020-10-08 02:55:10 +030045obj-$(CONFIG_SPI_DW_BT1) += spi-dw-bt1.o
Grant Likelyca632f52011-06-06 01:16:30 -060046obj-$(CONFIG_SPI_DW_MMIO) += spi-dw-mmio.o
Serge Semin6c710c02020-05-29 16:11:59 +030047obj-$(CONFIG_SPI_DW_PCI) += spi-dw-pci.o
Grant Likelyca632f52011-06-06 01:16:30 -060048obj-$(CONFIG_SPI_EP93XX) += spi-ep93xx.o
Thomas Langer6cd3c7e2012-05-20 15:46:19 +020049obj-$(CONFIG_SPI_FALCON) += spi-falcon.o
Eddie Jamesbbb6b2f2020-03-06 13:41:18 -060050obj-$(CONFIG_SPI_FSI) += spi-fsi.o
Andreas Larssone8beacb2013-02-15 16:52:21 +010051obj-$(CONFIG_SPI_FSL_CPM) += spi-fsl-cpm.o
Chao Fu349ad662013-08-16 11:08:55 +080052obj-$(CONFIG_SPI_FSL_DSPI) += spi-fsl-dspi.o
Grant Likelyca632f52011-06-06 01:16:30 -060053obj-$(CONFIG_SPI_FSL_LIB) += spi-fsl-lib.o
54obj-$(CONFIG_SPI_FSL_ESPI) += spi-fsl-espi.o
Gao Pan53149872016-11-22 21:52:17 +080055obj-$(CONFIG_SPI_FSL_LPSPI) += spi-fsl-lpspi.o
Frieder Schrempf84d04312019-01-07 09:29:47 +000056obj-$(CONFIG_SPI_FSL_QUADSPI) += spi-fsl-qspi.o
Grant Likelyca632f52011-06-06 01:16:30 -060057obj-$(CONFIG_SPI_FSL_SPI) += spi-fsl-spi.o
58obj-$(CONFIG_SPI_GPIO) += spi-gpio.o
Jay Fangc770d862021-03-27 17:10:00 +080059obj-$(CONFIG_SPI_HISI_KUNPENG) += spi-hisi-kunpeng.o
John Garrya2ca53b2019-12-09 22:08:09 +080060obj-$(CONFIG_SPI_HISI_SFC_V3XX) += spi-hisi-sfc-v3xx.o
Andrew Brestickerdeba25802014-11-14 10:48:32 -080061obj-$(CONFIG_SPI_IMG_SPFI) += spi-img-spfi.o
Grant Likelyca632f52011-06-06 01:16:30 -060062obj-$(CONFIG_SPI_IMX) += spi-imx.o
Artur Rojekae5f94c2021-08-31 01:01:38 +020063obj-$(CONFIG_SPI_INGENIC) += spi-ingenic.o
Hauke Mehrtens17f84b72017-02-14 00:31:11 +010064obj-$(CONFIG_SPI_LANTIQ_SSC) += spi-lantiq-ssc.o
Rich Felker2cb1b3b2016-08-04 04:30:37 +000065obj-$(CONFIG_SPI_JCORE) += spi-jcore.o
Grant Likelyca632f52011-06-06 01:16:30 -060066obj-$(CONFIG_SPI_LM70_LLP) += spi-lm70llp.o
Sergei Ianovich7ecbfff2016-02-23 13:44:28 +030067obj-$(CONFIG_SPI_LP8841_RTC) += spi-lp8841-rtc.o
Neil Armstrong454fa272017-05-23 15:39:33 +020068obj-$(CONFIG_SPI_MESON_SPICC) += spi-meson-spicc.o
Beniamino Galvanic3e4bc52014-11-22 16:21:41 +010069obj-$(CONFIG_SPI_MESON_SPIFC) += spi-meson-spifc.o
Grant Likelyca632f52011-06-06 01:16:30 -060070obj-$(CONFIG_SPI_MPC512x_PSC) += spi-mpc512x-psc.o
71obj-$(CONFIG_SPI_MPC52xx_PSC) += spi-mpc52xx-psc.o
72obj-$(CONFIG_SPI_MPC52xx) += spi-mpc52xx.o
Leilk Liua5682312015-08-07 15:19:50 +080073obj-$(CONFIG_SPI_MT65XX) += spi-mt65xx.o
Stefan Roesecbd66c62019-03-25 09:29:25 +010074obj-$(CONFIG_SPI_MT7621) += spi-mt7621.o
Chuanhong Guo881d1ee2020-03-06 16:50:50 +080075obj-$(CONFIG_SPI_MTK_NOR) += spi-mtk-nor.o
Mason Yangb942d802018-10-17 10:08:11 +080076obj-$(CONFIG_SPI_MXIC) += spi-mxic.o
Marek Vasut646781d32012-08-03 17:26:11 +020077obj-$(CONFIG_SPI_MXS) += spi-mxs.o
Tomer Maimonace55c42019-08-28 17:25:13 +030078obj-$(CONFIG_SPI_NPCM_FIU) += spi-npcm-fiu.o
Tomer Maimon2a22f1b2018-11-12 18:42:32 +020079obj-$(CONFIG_SPI_NPCM_PSPI) += spi-npcm-pspi.o
Yogesh Narayan Gaura5356ae2019-01-15 12:00:15 +000080obj-$(CONFIG_SPI_NXP_FLEXSPI) += spi-nxp-fspi.o
Grant Likelyca632f52011-06-06 01:16:30 -060081obj-$(CONFIG_SPI_OC_TINY) += spi-oc-tiny.o
Jan Glauber63d49af2016-07-23 12:42:54 +020082spi-octeon-objs := spi-cavium.o spi-cavium-octeon.o
David Daney6b52c002012-08-22 12:25:07 -070083obj-$(CONFIG_SPI_OCTEON) += spi-octeon.o
Grant Likelyca632f52011-06-06 01:16:30 -060084obj-$(CONFIG_SPI_OMAP_UWIRE) += spi-omap-uwire.o
85obj-$(CONFIG_SPI_OMAP_100K) += spi-omap-100k.o
86obj-$(CONFIG_SPI_OMAP24XX) += spi-omap2-mcspi.o
Sourav Poddar505a1492013-08-20 18:55:48 +053087obj-$(CONFIG_SPI_TI_QSPI) += spi-ti-qspi.o
Grant Likelyca632f52011-06-06 01:16:30 -060088obj-$(CONFIG_SPI_ORION) += spi-orion.o
Purna Chandra Mandal1bcb9f8c2016-04-01 16:48:50 +053089obj-$(CONFIG_SPI_PIC32) += spi-pic32.o
Purna Chandra Mandal3270ac22016-04-15 16:57:19 +053090obj-$(CONFIG_SPI_PIC32_SQI) += spi-pic32-sqi.o
Grant Likelyca632f52011-06-06 01:16:30 -060091obj-$(CONFIG_SPI_PL022) += spi-pl022.o
92obj-$(CONFIG_SPI_PPC4xx) += spi-ppc4xx.o
Jarkko Nikula22a33632016-01-13 16:20:07 +020093spi-pxa2xx-platform-objs := spi-pxa2xx.o spi-pxa2xx-dma.o
Mika Westerbergcd7bed02013-01-22 12:26:28 +020094obj-$(CONFIG_SPI_PXA2XX) += spi-pxa2xx-platform.o
Grant Likelyca632f52011-06-06 01:16:30 -060095obj-$(CONFIG_SPI_PXA2XX_PCI) += spi-pxa2xx-pci.o
Girish Mahadevan561de452018-10-03 19:14:25 +053096obj-$(CONFIG_SPI_QCOM_GENI) += spi-geni-qcom.o
Girish Mahadevan04000dc2018-10-02 14:47:08 -070097obj-$(CONFIG_SPI_QCOM_QSPI) += spi-qcom-qspi.o
Ivan T. Ivanov64ff2472014-02-13 18:21:38 +020098obj-$(CONFIG_SPI_QUP) += spi-qup.o
addy ke64e36822014-07-01 09:03:59 +080099obj-$(CONFIG_SPI_ROCKCHIP) += spi-rockchip.o
Chris Morgan0b89fc02021-08-12 21:45:42 +0800100obj-$(CONFIG_SPI_ROCKCHIP_SFC) += spi-rockchip-sfc.o
Bert Vermeulen05aec352015-04-15 17:43:52 +0200101obj-$(CONFIG_SPI_RB4XX) += spi-rb4xx.o
Bert Vermeulena8af5cc2021-01-20 14:59:28 +0100102obj-$(CONFIG_MACH_REALTEK_RTL) += spi-realtek-rtl.o
Sergei Shtylyoveb8d6d42020-06-13 22:18:34 +0300103obj-$(CONFIG_SPI_RPCIF) += spi-rpc-if.o
Shimoda, Yoshihiro0b2182d2012-03-07 14:46:25 +0900104obj-$(CONFIG_SPI_RSPI) += spi-rspi.o
Grant Likelyca632f52011-06-06 01:16:30 -0600105obj-$(CONFIG_SPI_S3C24XX) += spi-s3c24xx-hw.o
106spi-s3c24xx-hw-y := spi-s3c24xx.o
Grant Likelyca632f52011-06-06 01:16:30 -0600107obj-$(CONFIG_SPI_S3C64XX) += spi-s3c64xx.o
Guenter Roeck3ce88592012-08-18 09:06:27 -0700108obj-$(CONFIG_SPI_SC18IS602) += spi-sc18is602.o
Grant Likelyca632f52011-06-06 01:16:30 -0600109obj-$(CONFIG_SPI_SH) += spi-sh.o
Kuninori Morimotod1c8bbd2012-03-01 17:10:17 -0800110obj-$(CONFIG_SPI_SH_HSPI) += spi-sh-hspi.o
Grant Likelyca632f52011-06-06 01:16:30 -0600111obj-$(CONFIG_SPI_SH_MSIOF) += spi-sh-msiof.o
112obj-$(CONFIG_SPI_SH_SCI) += spi-sh-sci.o
Yash Shah484a9a62019-02-19 17:10:07 +0530113obj-$(CONFIG_SPI_SIFIVE) += spi-sifive.o
Leilk Liu805be7d2018-09-28 18:53:04 +0800114obj-$(CONFIG_SPI_SLAVE_MT27XX) += spi-slave-mt27xx.o
Lanqing Liue7d973a2018-08-16 20:54:51 +0800115obj-$(CONFIG_SPI_SPRD) += spi-sprd.o
Baolin Wang7e2903c2017-09-15 15:29:16 +0800116obj-$(CONFIG_SPI_SPRD_ADI) += spi-sprd-adi.o
Amelie Delaunaydcbe0d82017-06-21 16:32:06 +0200117obj-$(CONFIG_SPI_STM32) += spi-stm32.o
Ludovic Barrec530cd12018-10-05 09:43:03 +0200118obj-$(CONFIG_SPI_STM32_QSPI) += spi-stm32-qspi.o
Lee Jones9e862372014-12-09 20:21:30 +0000119obj-$(CONFIG_SPI_ST_SSC4) += spi-st-ssc4.o
Maxime Ripardb5f65172014-02-22 22:35:53 +0100120obj-$(CONFIG_SPI_SUN4I) += spi-sun4i.o
Maxime Ripard3558fe92014-02-05 14:05:05 +0100121obj-$(CONFIG_SPI_SUN6I) += spi-sun6i.o
Masahisa Kojimab0823ee2019-06-04 14:12:57 +0900122obj-$(CONFIG_SPI_SYNQUACER) += spi-synquacer.o
Sowjanya Komatineni921fc182020-12-21 13:17:34 -0800123obj-$(CONFIG_SPI_TEGRA210_QUAD) += spi-tegra210-quad.o
Laxman Dewanganf333a332013-02-22 18:07:39 +0530124obj-$(CONFIG_SPI_TEGRA114) += spi-tegra114.o
Laxman Dewangan85285472012-11-14 05:54:47 +0530125obj-$(CONFIG_SPI_TEGRA20_SFLASH) += spi-tegra20-sflash.o
Laxman Dewangandc4dc362012-10-30 12:34:05 +0530126obj-$(CONFIG_SPI_TEGRA20_SLINK) += spi-tegra20-slink.o
Grant Likelyca632f52011-06-06 01:16:30 -0600127obj-$(CONFIG_SPI_TLE62X0) += spi-tle62x0.o
Jan Glauber7347a6c72016-08-19 16:03:20 +0200128spi-thunderx-objs := spi-cavium.o spi-cavium-thunderx.o
129obj-$(CONFIG_SPI_THUNDERX) += spi-thunderx.o
Grant Likelyca632f52011-06-06 01:16:30 -0600130obj-$(CONFIG_SPI_TOPCLIFF_PCH) += spi-topcliff-pch.o
Keiji Hayashibara5ba155a2018-08-01 16:29:12 +0900131obj-$(CONFIG_SPI_UNIPHIER) += spi-uniphier.o
Lars-Peter Clausenb3165902012-07-19 18:44:07 +0200132obj-$(CONFIG_SPI_XCOMM) += spi-xcomm.o
Grant Likelyca632f52011-06-06 01:16:30 -0600133obj-$(CONFIG_SPI_XILINX) += spi-xilinx.o
Kamlakant Pateld8c80d42015-08-27 17:49:28 +0530134obj-$(CONFIG_SPI_XLP) += spi-xlp.o
Max Filippov6840cc22014-03-12 21:55:24 +0400135obj-$(CONFIG_SPI_XTENSA_XTFPGA) += spi-xtensa-xtfpga.o
Naga Sureshkumar Relli67dca5e2019-04-01 13:29:13 +0530136obj-$(CONFIG_SPI_ZYNQ_QSPI) += spi-zynq-qspi.o
Ranjit Waghmodedfe11a12015-06-10 16:08:21 +0530137obj-$(CONFIG_SPI_ZYNQMP_GQSPI) += spi-zynqmp-gqspi.o
Sanjay R Mehtabbb336f2020-04-25 14:59:48 -0500138obj-$(CONFIG_SPI_AMD) += spi-amd.o
Geert Uytterhoeven6c364062017-05-22 15:11:41 +0200139
140# SPI slave protocol handlers
Geert Uytterhoeven29f9ffa2017-05-22 15:11:44 +0200141obj-$(CONFIG_SPI_SLAVE_TIME) += spi-slave-time.o
Geert Uytterhoevence70e062017-05-22 15:11:45 +0200142obj-$(CONFIG_SPI_SLAVE_SYSTEM_CONTROL) += spi-slave-system-control.o