summaryrefslogtreecommitdiff
path: root/include/spi_flash.h
diff options
context:
space:
mode:
authorJagannadha Sutradharudu Teki <jaganna@xilinx.com>2013-10-02 19:34:53 +0530
committerJagannadha Sutradharudu Teki <jaganna@xilinx.com>2013-10-07 17:55:44 +0530
commit10ca45d005a96e810b5a225b08135fc24da62ee9 (patch)
treeddf3ca44cc5aa8e4737f1d6b36b6837195fc7faf /include/spi_flash.h
parentb7797422e3c749a323a703e90004656b288a5dca (diff)
downloadu-boot-imx-10ca45d005a96e810b5a225b08135fc24da62ee9.zip
u-boot-imx-10ca45d005a96e810b5a225b08135fc24da62ee9.tar.gz
u-boot-imx-10ca45d005a96e810b5a225b08135fc24da62ee9.tar.bz2
sf: probe: Add support for SST_WP
Most of the SST flashes needs to write up using SST_WP, AAI Word Program, so added a flag param on spi_flash_params table. SST flashes, which supports SST_WP need to use a WP write sst_write_wp instead of common flash write. Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
Diffstat (limited to 'include/spi_flash.h')
-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;