summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/spi_flash.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/spi_flash.h b/include/spi_flash.h
index bfc59aa..de262ed 100644
--- a/include/spi_flash.h
+++ b/include/spi_flash.h
@@ -17,6 +17,13 @@
#include <linux/types.h>
#include <linux/compiler.h>
+/* SST specific macros */
+#ifdef CONFIG_SPI_FLASH_SST
+# define SST_WP 0x01 /* Supports AAI word program */
+# define CMD_SST_BP 0x02 /* Byte Program */
+# define CMD_SST_AAI_WP 0xAD /* Auto Address Incr Word Program */
+#endif
+
struct spi_flash {
struct spi_slave *spi;