From dc1cda15d48cdbc7d53e4cf86cf39844e4af2a8b Mon Sep 17 00:00:00 2001 From: Carl-Daniel Hailfinger Date: Fri, 28 May 2010 17:07:57 +0000 Subject: 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 Acked-by: Stefan Reinauer --- chipdrivers.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'chipdrivers.h') 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); -- cgit v1.1