summaryrefslogtreecommitdiff
path: root/include/spi.h
diff options
context:
space:
mode:
authorJagannadha Sutradharudu Teki <jagannadh.teki@gmail.com>2014-12-12 19:36:14 +0530
committerSimon Glass <sjg@chromium.org>2014-12-13 15:08:04 -0700
commit54ba653ab63b31c8f5405fb0ee9dfba05cbb1521 (patch)
treef25ee08062a2b629296e8bb19ae0461dc7493c76 /include/spi.h
parent74c2cee4e82bb71953267e87900e279ab5aa1dc3 (diff)
downloadu-boot-imx-54ba653ab63b31c8f5405fb0ee9dfba05cbb1521.zip
u-boot-imx-54ba653ab63b31c8f5405fb0ee9dfba05cbb1521.tar.gz
u-boot-imx-54ba653ab63b31c8f5405fb0ee9dfba05cbb1521.tar.bz2
sf: Enable byte program support
Enabled byte program support for sst flashes in sf. Few controllers will only support BP, so this patch gives a tx transfer flag to set the BP so-that sf will operate on byte program transfer. A new TX operation mode SPI_OPM_TX_BP is introduced for such SPI controller to use byte program op for SST flash. Signed-off-by: Jagannadha Sutradharudu Teki <jagannadh.teki@gmail.com> Tested-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'include/spi.h')
-rw-r--r--include/spi.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/spi.h b/include/spi.h
index 5b78271..ec17bd0 100644
--- a/include/spi.h
+++ b/include/spi.h
@@ -34,6 +34,7 @@
/* SPI TX operation modes */
#define SPI_OPM_TX_QPP (1 << 0)
+#define SPI_OPM_TX_BP (1 << 1)
/* SPI RX operation modes */
#define SPI_OPM_RX_AS (1 << 0)