summaryrefslogtreecommitdiffstats
path: root/chipdrivers.h
diff options
context:
space:
mode:
authorCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>2010-05-28 17:07:57 +0000
committerCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>2010-05-28 17:07:57 +0000
commitdc1cda15d48cdbc7d53e4cf86cf39844e4af2a8b (patch)
treef7d7123a8b474227d45bd9f0eae5b819d499b3a8 /chipdrivers.h
parent80f3d05e7356ec85f9ea27ae2e11245e0b6bb3c6 (diff)
downloadast2050-flashrom-dc1cda15d48cdbc7d53e4cf86cf39844e4af2a8b.zip
ast2050-flashrom-dc1cda15d48cdbc7d53e4cf86cf39844e4af2a8b.tar.gz
Add support for two-byte RES probes
Some chips implement the RES (0xab) opcode, but they use a non-standard two byte response instead of the usual one byte response. A two-byte response has the accuracy of REMS and RDID, so don't check for REMS/RDID availability before running a two-byte RES. Corresponding to flashrom svn r1017. Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Acked-by: Stefan Reinauer <stepan@coresystems.de>
Diffstat (limited to 'chipdrivers.h')
-rw-r--r--chipdrivers.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/chipdrivers.h b/chipdrivers.h
index 9537775..7339e2d 100644
--- a/chipdrivers.h
+++ b/chipdrivers.h
@@ -29,7 +29,8 @@
int probe_spi_rdid(struct flashchip *flash);
int probe_spi_rdid4(struct flashchip *flash);
int probe_spi_rems(struct flashchip *flash);
-int probe_spi_res(struct flashchip *flash);
+int probe_spi_res1(struct flashchip *flash);
+int probe_spi_res2(struct flashchip *flash);
int spi_write_enable(void);
int spi_write_disable(void);
int spi_chip_erase_60(struct flashchip *flash);
OpenPOWER on IntegriCloud