]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
spi: sf: Support byte program for sst spi flash
authorBin Meng <bmeng.cn@gmail.com>
Fri, 12 Dec 2014 14:06:13 +0000 (19:36 +0530)
committerSimon Glass <sjg@chromium.org>
Sat, 13 Dec 2014 22:08:04 +0000 (15:08 -0700)
commit74c2cee4e82bb71953267e87900e279ab5aa1dc3
tree524371e62373f26cfca4db1455060f5b73400a57
parentb648742a17c16639976ac5b38f246cb0f7d41da5
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>
drivers/mtd/spi/sf_internal.h
drivers/mtd/spi/sf_ops.c