From bcf6109a76a873fc1227402d4b5b13a87dc3eb1a Mon Sep 17 00:00:00 2001 From: Ben Gardner Date: Sun, 22 Nov 2015 02:23:31 +0000 Subject: Add support for SST SST25WF020A, SST25WF040B, SST25WF080B Apart from the strange ID (using Sanyo's vendor ID 0x62) the main difference from the plain SST25WF series is that they lack op codes 0xAD (AAI Word program) and 0x52 (32K erase). The smallest version does not support dual I/O operations either. SST25WF080B was tested under Linux with spidev. Corresponding to flashrom svn r1901. Tested-by: Ben Gardner Signed-off-by: Ben Gardner Signed-off-by: Stefan Tauner Acked-by: Stefan Tauner --- spi25_statusreg.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'spi25_statusreg.c') diff --git a/spi25_statusreg.c b/spi25_statusreg.c index bf63fb3..01a6862 100644 --- a/spi25_statusreg.c +++ b/spi25_statusreg.c @@ -374,6 +374,19 @@ int spi_prettyprint_status_register_bp2_bpl(struct flashctx *flash) return 0; } +int spi_prettyprint_status_register_bp2_tb_bpl(struct flashctx *flash) +{ + uint8_t status = spi_read_status_register(flash); + spi_prettyprint_status_register_hex(status); + + spi_prettyprint_status_register_bpl(status); + spi_prettyprint_status_register_bit(status, 6); + msg_cdbg("Chip status register: Top/Bottom (TB) is %s\n", (status & (1 << 5)) ? "bottom" : "top"); + spi_prettyprint_status_register_bp(status, 2); + spi_prettyprint_status_register_welwip(status); + return 0; +} + /* === Amic === * FIXME: spi_disable_blockprotect is incorrect but works fine for chips using * spi_prettyprint_status_register_bp1_srwd or -- cgit v1.1