From aca1dce951be2d36d934910a80e19d4b56d455eb Mon Sep 17 00:00:00 2001 From: Carl-Daniel Hailfinger Date: Thu, 7 Jan 2010 21:23:45 +0000 Subject: Fix Sharp LHF00L04 - Add eraseblock definitions - Use correct eraseblock sizes (the datasheet is a bit ambiguous) - Use correct probe function - Fill in probe timing There is a lot more stuff left to clean up, but at least probe and erase should work now. Corresponding to flashrom svn r837. Signed-off-by: Carl-Daniel Hailfinger Acked-by: Sean Nelson --- chipdrivers.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'chipdrivers.h') diff --git a/chipdrivers.h b/chipdrivers.h index 4456204a..af22abf2 100644 --- a/chipdrivers.h +++ b/chipdrivers.h @@ -53,6 +53,7 @@ int spi_read_chunked(struct flashchip *flash, uint8_t *buf, int start, int len, int spi_aai_write(struct flashchip *flash, uint8_t *buf); /* 82802ab.c */ +uint8_t wait_82802ab(chipaddr bios); int probe_82802ab(struct flashchip *flash); int erase_82802ab(struct flashchip *flash); int write_82802ab(struct flashchip *flash, uint8_t *buf); @@ -117,7 +118,7 @@ int write_49fl00x(struct flashchip *flash, uint8_t *buf); /* sharplhf00l04.c */ int probe_lhf00l04(struct flashchip *flash); -int erase_lhf00l04(struct flashchip *flash); +int erase_lhf00l04_block(struct flashchip *flash, unsigned int blockaddr, unsigned int blocklen); int write_lhf00l04(struct flashchip *flash, uint8_t *buf); void protect_lhf00l04(chipaddr bios); -- cgit v1.2.3