Skip to content

Commit f98cabe

Browse files
HaixuCuibroonie
authored andcommitted
SPI: Add virtio SPI driver
This is the virtio SPI Linux kernel driver. Signed-off-by: Haixu Cui <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 6a1f339 commit f98cabe

4 files changed

Lines changed: 444 additions & 0 deletions

File tree

MAINTAINERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26807,6 +26807,7 @@ VIRTIO SPI DRIVER
2680726807
M: Haixu Cui <[email protected]>
2680826808
2680926809
S: Maintained
26810+
F: drivers/spi/spi-virtio.c
2681026811
F: include/uapi/linux/virtio_spi.h
2681126812

2681226813
VIRTUAL BOX GUEST DEVICE DRIVER

drivers/spi/Kconfig

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1235,6 +1235,17 @@ config SPI_UNIPHIER
12351235

12361236
If your SoC supports SCSSI, say Y here.
12371237

1238+
config SPI_VIRTIO
1239+
tristate "Virtio SPI Controller"
1240+
depends on SPI_MASTER && VIRTIO
1241+
help
1242+
If you say yes to this option, support will be included for the virtio
1243+
SPI controller driver. The hardware can be emulated by any device model
1244+
software according to the virtio protocol.
1245+
1246+
This driver can also be built as a module. If so, the module
1247+
will be called spi-virtio.
1248+
12381249
config SPI_XCOMM
12391250
tristate "Analog Devices AD-FMCOMMS1-EBZ SPI-I2C-bridge driver"
12401251
depends on I2C

drivers/spi/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@ spi-thunderx-objs := spi-cavium.o spi-cavium-thunderx.o
159159
obj-$(CONFIG_SPI_THUNDERX) += spi-thunderx.o
160160
obj-$(CONFIG_SPI_TOPCLIFF_PCH) += spi-topcliff-pch.o
161161
obj-$(CONFIG_SPI_UNIPHIER) += spi-uniphier.o
162+
obj-$(CONFIG_SPI_VIRTIO) += spi-virtio.o
162163
obj-$(CONFIG_SPI_XCOMM) += spi-xcomm.o
163164
obj-$(CONFIG_SPI_XILINX) += spi-xilinx.o
164165
obj-$(CONFIG_SPI_XLP) += spi-xlp.o

0 commit comments

Comments
 (0)