Skip to content

Commit 1a90aae

Browse files
Gerhard Englederbroonie
authored andcommitted
spi: spi-kspi2: Add KEBA SPI controller support
The KEBA SPI controller is found in the system FPGA of KEBA PLC devices. It is used to connect the SPI flash chip of the FPGA and some SPI devices. It is a simple SPI controller with configurable speed. The hardware supports only single byte transfers. There are no FIFOs or interrupts. Signed-off-by: Gerhard Engleder <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 577f1cf commit 1a90aae

File tree

3 files changed

+444
-0
lines changed

3 files changed

+444
-0
lines changed

drivers/spi/Kconfig

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -542,6 +542,18 @@ config SPI_JCORE
542542
This enables support for the SPI master controller in the J-Core
543543
synthesizable, open source SoC.
544544

545+
config SPI_KSPI2
546+
tristate "Support for KEBA SPI master type 2 hardware"
547+
depends on HAS_IOMEM
548+
depends on KEBA_CP500 || COMPILE_TEST
549+
select AUXILIARY_BUS
550+
help
551+
This driver supports KEBA SPI master type 2 FPGA implementation,
552+
as found on CP500 devices for example.
553+
554+
This driver can also be built as a module. If so, the module
555+
will be called spi-kspi2.
556+
545557
config SPI_LM70_LLP
546558
tristate "Parallel port adapter for LM70 eval board (DEVELOPMENT)"
547559
depends on PARPORT

drivers/spi/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ obj-$(CONFIG_SPI_INTEL_PCI) += spi-intel-pci.o
7474
obj-$(CONFIG_SPI_INTEL_PLATFORM) += spi-intel-platform.o
7575
obj-$(CONFIG_SPI_LANTIQ_SSC) += spi-lantiq-ssc.o
7676
obj-$(CONFIG_SPI_JCORE) += spi-jcore.o
77+
obj-$(CONFIG_SPI_KSPI2) += spi-kspi2.o
7778
obj-$(CONFIG_SPI_LJCA) += spi-ljca.o
7879
obj-$(CONFIG_SPI_LM70_LLP) += spi-lm70llp.o
7980
obj-$(CONFIG_SPI_LOONGSON_CORE) += spi-loongson-core.o

0 commit comments

Comments
 (0)