aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2021-09-15 11:06:10 -0400
committerKevin O'Connor <kevin@koconnor.net>2021-09-15 11:06:10 -0400
commit8cf1b512233857ec74a4a8fb9ed3245b3daac84b (patch)
treeb41822076073fcfcbec6d75a507314caf5ca2597
parentc84956befe88daeeb9512acaa9fa82395665df16 (diff)
downloadkutter-8cf1b512233857ec74a4a8fb9ed3245b3daac84b.tar.gz
kutter-8cf1b512233857ec74a4a8fb9ed3245b3daac84b.tar.xz
kutter-8cf1b512233857ec74a4a8fb9ed3245b3daac84b.zip
linux: Support spidev4 through spidev7
The rpi4 has additional spi devices. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
-rw-r--r--src/linux/spidev.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/linux/spidev.c b/src/linux/spidev.c
index 1c3574f8..7fdd468d 100644
--- a/src/linux/spidev.c
+++ b/src/linux/spidev.c
@@ -23,6 +23,10 @@ DECL_ENUMERATION_RANGE("spi_bus", "spidev0.0", SPIBUS(0, 0), 16);
DECL_ENUMERATION_RANGE("spi_bus", "spidev1.0", SPIBUS(1, 0), 16);
DECL_ENUMERATION_RANGE("spi_bus", "spidev2.0", SPIBUS(2, 0), 16);
DECL_ENUMERATION_RANGE("spi_bus", "spidev3.0", SPIBUS(3, 0), 16);
+DECL_ENUMERATION_RANGE("spi_bus", "spidev4.0", SPIBUS(4, 0), 16);
+DECL_ENUMERATION_RANGE("spi_bus", "spidev5.0", SPIBUS(5, 0), 16);
+DECL_ENUMERATION_RANGE("spi_bus", "spidev6.0", SPIBUS(6, 0), 16);
+DECL_ENUMERATION_RANGE("spi_bus", "spidev7.0", SPIBUS(7, 0), 16);
struct spi_s {
uint32_t bus, dev;