aboutsummaryrefslogtreecommitdiff
path: root/include/spi.h
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2018-10-02 13:02:22 -0400
committerTom Rini <trini@konsulko.com>2018-10-02 17:01:46 -0400
commit592cd5defd4f71d34ffcbd8dd3326bc10f662e20 (patch)
tree0824c4d2c60d79b7be18ba82209d899e4d4f8c34 /include/spi.h
parent2ba8bf207481cfb319f54a1bef67f6f068831a58 (diff)
parentb3bec2525604d6b42bb9e7fd719c84b022447db3 (diff)
downloadu-boot-592cd5defd4f71d34ffcbd8dd3326bc10f662e20.zip
u-boot-592cd5defd4f71d34ffcbd8dd3326bc10f662e20.tar.gz
u-boot-592cd5defd4f71d34ffcbd8dd3326bc10f662e20.tar.bz2
Merge branch 'master' of git://git.denx.de/u-boot-spi
This is the PR for SPI-NAND changes along with few spi changes. [trini: Re-sync changes for ls1012afrwy_qspi*_defconfig] Signed-off-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'include/spi.h')
-rw-r--r--include/spi.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/spi.h b/include/spi.h
index 9754c53..938627b 100644
--- a/include/spi.h
+++ b/include/spi.h
@@ -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 */
@@ -403,6 +405,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