]> git.sur5r.net Git - u-boot/blobdiff - include/spi.h
ARM: zynq: Remove ZYNQ_BOOT_FREEBSD option
[u-boot] / include / spi.h
index 85866a27fcb7f65b3ef11cdea2a3e2e832ca3712..4b88d3986e78cea0e3bf117a5b6351f88c011146 100644 (file)
@@ -24,7 +24,8 @@
 #define SPI_SLAVE      BIT(6)                  /* slave mode */
 #define SPI_PREAMBLE   BIT(7)                  /* Skip preamble bytes */
 #define SPI_TX_BYTE    BIT(8)                  /* transmit with 1 wire byte */
-#define SPI_TX_QUAD    BIT(9)                  /* transmit with 4 wires */
+#define SPI_TX_DUAL    BIT(9)                  /* transmit with 2 wires */
+#define SPI_TX_QUAD    BIT(10)                 /* transmit with 4 wires */
 
 /* SPI mode_rx flags */
 #define SPI_RX_SLOW    BIT(0)                  /* receive with 1 wire slow */
@@ -60,11 +61,13 @@ struct dm_spi_bus {
  * @cs:                Chip select number (0..n-1)
  * @max_hz:    Maximum bus speed that this slave can tolerate
  * @mode:      SPI mode to use for this device (see SPI mode flags)
+ * @mode_rx:   SPI RX mode to use for this slave (see SPI mode_rx flags)
  */
 struct dm_spi_slave_platdata {
        unsigned int cs;
        uint max_hz;
        uint mode;
+       u8 mode_rx;
 };
 
 #endif /* CONFIG_DM_SPI */