[U-Boot] [PATCH 3/5] spi: sf: Support byte program for sst spi flash

Simon Glass sjg at chromium.org
Fri Oct 24 06:17:20 CEST 2014


On 23 October 2014 07:36, Bin Meng <bmeng.cn at gmail.com> wrote:
> 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.
>
> 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: Bin Meng <bmeng.cn at gmail.com>
> ---
>  drivers/mtd/spi/sf_internal.h |  2 ++
>  drivers/mtd/spi/sf_ops.c      | 31 +++++++++++++++++++++++++++++++
>  drivers/mtd/spi/sf_probe.c    |  8 ++++++--
>  drivers/spi/ich.c             |  9 +++++++--
>  include/spi.h                 |  1 +
>  5 files changed, 47 insertions(+), 4 deletions(-)

Acked-by: Simon Glass <sjg at chromium.org>

Tested on link (which is however ich9)

Tested-by: Simon Glass <sjg at chromium.org>

There are a few conflicts with the driver model SPI series that just
landed. I'll push this to u-boot-x86/testing for now so that Jagan can
take a look. But probably this should come through the x86 tree.

Regards,
Simon


More information about the U-Boot mailing list