summaryrefslogtreecommitdiff
path: root/drivers/mtd/spi/sf_internal.h
diff options
context:
space:
mode:
authorBin Meng <bmeng.cn@gmail.com>2014-12-12 19:36:13 +0530
committerSimon Glass <sjg@chromium.org>2014-12-13 15:08:04 -0700
commit74c2cee4e82bb71953267e87900e279ab5aa1dc3 (patch)
tree524371e62373f26cfca4db1455060f5b73400a57 /drivers/mtd/spi/sf_internal.h
parentb648742a17c16639976ac5b38f246cb0f7d41da5 (diff)
downloadu-boot-imx-74c2cee4e82bb71953267e87900e279ab5aa1dc3.zip
u-boot-imx-74c2cee4e82bb71953267e87900e279ab5aa1dc3.tar.gz
u-boot-imx-74c2cee4e82bb71953267e87900e279ab5aa1dc3.tar.bz2
spi: sf: Support byte program for sst spi flash
Currently if SST flash advertises SST_WP flag in the params table the word program command (ADh) with auto address increment will be used for the flash write op. However some SPI controllers do not support the word program command (like the Intel ICH 7), the byte programm command (02h) has to be used. Signed-off-by: Bin Meng <bmeng.cn@gmail.com> Acked-by: Simon Glass <sjg@chromium.org> Tested-by: Simon Glass <sjg@chromium.org> Reviewed-by: Jagannadha Sutradharudu Teki <jagannadh.teki@gmail.com>
Diffstat (limited to 'drivers/mtd/spi/sf_internal.h')
-rw-r--r--drivers/mtd/spi/sf_internal.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/mtd/spi/sf_internal.h b/drivers/mtd/spi/sf_internal.h
index 7218e69..fb53cb0 100644
--- a/drivers/mtd/spi/sf_internal.h
+++ b/drivers/mtd/spi/sf_internal.h
@@ -110,6 +110,8 @@ enum {
int sst_write_wp(struct spi_flash *flash, u32 offset, size_t len,
const void *buf);
+int sst_write_bp(struct spi_flash *flash, u32 offset, size_t len,
+ const void *buf);
#endif
/**