path: root/chipdrivers.h
diff options
authorCarl-Daniel Hailfinger <>2010-01-07 21:23:45 +0000
committerCarl-Daniel Hailfinger <>2010-01-07 21:23:45 +0000
commitaca1dce951be2d36d934910a80e19d4b56d455eb (patch)
treef93a86e513bb8aea162bd46a87da13fd5462d6f7 /chipdrivers.h
parent74aa77212923b6edcf3df1c880f95623bcf17471 (diff)
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 <>
Diffstat (limited to 'chipdrivers.h')
1 files changed, 2 insertions, 1 deletions
diff --git a/chipdrivers.h b/chipdrivers.h
index 4456204..af22abf 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);
OpenPOWER on IntegriCloud