From 8cf1b512233857ec74a4a8fb9ed3245b3daac84b Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Wed, 15 Sep 2021 11:06:10 -0400 Subject: [PATCH] linux: Support spidev4 through spidev7 The rpi4 has additional spi devices. Signed-off-by: Kevin O'Connor --- src/linux/spidev.c | 4 ++++ 1 file changed, 4 insertions(+) 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;