sunxi: usb: Switch to Generic host controllers
[platform/kernel/u-boot.git] / include / spi.h
index 9754c53..92427e5 100644 (file)
@@ -9,6 +9,8 @@
 #ifndef _SPI_H_
 #define _SPI_H_
 
+#include <common.h>
+
 /* SPI mode flags */
 #define SPI_CPHA       BIT(0)                  /* clock phase */
 #define SPI_CPOL       BIT(1)                  /* clock polarity */
@@ -116,13 +118,6 @@ struct spi_slave {
 };
 
 /**
- * Initialization, must be called once on start up.
- *
- * TODO: I don't think we really need this.
- */
-void spi_init(void);
-
-/**
  * spi_do_alloc_slave - Allocate a new SPI slave (internal)
  *
  * Allocate and zero all fields in the spi slave, and set the bus/chip
@@ -403,6 +398,15 @@ struct dm_spi_ops {
                    void *din, unsigned long flags);
 
        /**
+        * Optimized handlers for SPI memory-like operations.
+        *
+        * Optimized/dedicated operations for interactions with SPI memory. This
+        * field is optional and should only be implemented if the controller
+        * has native support for memory like operations.
+        */
+       const struct spi_controller_mem_ops *mem_ops;
+
+       /**
         * Set transfer speed.
         * This sets a new speed to be applied for next spi_xfer().
         * @bus:        The SPI bus