aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/linux/misc/keba.h
diff options
context:
space:
mode:
authorGerhard Engleder <eg@keba.com>2024-10-11 21:12:52 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-10-13 17:16:57 +0200
commit7948483001039c00dcff4b94c181d7e14693a38c (patch)
tree6d92fa7dfffce970311b757a9a7bafc35ae1510b /include/linux/misc/keba.h
parentmisc: keba: Use capital letters for I2C error message (diff)
downloadwireguard-linux-7948483001039c00dcff4b94c181d7e14693a38c.tar.xz
wireguard-linux-7948483001039c00dcff4b94c181d7e14693a38c.zip
misc: keba: Add SPI controller device
Add support for the SPI controller auxiliary device. This enables access to the SPI flash of the FPGA and some other SPI devices. The actual list of SPI devices is detected by reading some bits out of the previously registered I2C EEPROM. Signed-off-by: Gerhard Engleder <eg@keba.com> Link: https://lore.kernel.org/r/20241011191257.19702-4-gerhard@engleder-embedded.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/misc/keba.h')
-rw-r--r--include/linux/misc/keba.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/include/linux/misc/keba.h b/include/linux/misc/keba.h
index 323b31a847c5..1bd5409c6f6f 100644
--- a/include/linux/misc/keba.h
+++ b/include/linux/misc/keba.h
@@ -7,6 +7,7 @@
#include <linux/auxiliary_bus.h>
struct i2c_board_info;
+struct spi_board_info;
/**
* struct keba_i2c_auxdev - KEBA I2C auxiliary device
@@ -22,4 +23,18 @@ struct keba_i2c_auxdev {
struct i2c_board_info *info;
};
+/**
+ * struct keba_spi_auxdev - KEBA SPI auxiliary device
+ * @auxdev: auxiliary device object
+ * @io: address range of SPI controller IO memory
+ * @info_size: number of SPI devices to be probed
+ * @info: SPI devices to be probed
+ */
+struct keba_spi_auxdev {
+ struct auxiliary_device auxdev;
+ struct resource io;
+ int info_size;
+ struct spi_board_info *info;
+};
+
#endif /* _LINUX_MISC_KEBA_H */