hc
2024-05-10 10ebd8556b7990499c896a550e3d416b444211e6
kernel/include/uapi/linux/spi/spidev.h
....@@ -48,6 +48,10 @@
4848 #define SPI_TX_QUAD 0x200
4949 #define SPI_RX_DUAL 0x400
5050 #define SPI_RX_QUAD 0x800
51
+#define SPI_CS_WORD 0x1000
52
+#define SPI_TX_OCTAL 0x2000
53
+#define SPI_RX_OCTAL 0x4000
54
+#define SPI_3WIRE_HIZ 0x8000
5155
5256 /*---------------------------------------------------------------------------*/
5357
....@@ -66,6 +70,9 @@
6670 * @delay_usecs: If nonzero, how long to delay after the last bit transfer
6771 * before optionally deselecting the device before the next transfer.
6872 * @cs_change: True to deselect device before starting the next transfer.
73
+ * @word_delay_usecs: If nonzero, how long to wait between words within one
74
+ * transfer. This property needs explicit support in the SPI controller,
75
+ * otherwise it is silently ignored.
6976 *
7077 * This structure is mapped directly to the kernel spi_transfer structure;
7178 * the fields have the same meanings, except of course that the pointers
....@@ -100,7 +107,8 @@
100107 __u8 cs_change;
101108 __u8 tx_nbits;
102109 __u8 rx_nbits;
103
- __u16 pad;
110
+ __u8 word_delay_usecs;
111
+ __u8 pad;
104112
105113 /* If the contents of 'struct spi_ioc_transfer' ever change
106114 * incompatibly, then the ioctl number (currently 0) must change;