1
0
mirror of https://review.coreboot.org/flashrom.git synced 2025-07-02 06:23:18 +02:00

Use generic unlocking infrastructure for SPI chips

Actually check if the unlock worked instead of just assuming it worked.

Corresponding to flashrom svn r1082.

Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Acked-by: Michael Karcher <flashrom@mkarcher.dialup.fu-berlin.de>
This commit is contained in:
Carl-Daniel Hailfinger
2010-07-14 20:21:22 +00:00
parent ca812d40d4
commit 29a1c66a23
11 changed files with 104 additions and 24 deletions

View File

@ -344,7 +344,6 @@ int it8716f_spi_chip_write_256(struct flashchip *flash, uint8_t *buf, int start,
spi_chip_write_1_new(flash, buf, start, len);
} else {
int lenhere;
spi_disable_blockprotect();
if (start % 256) {
/* start to the end of the page or start + len,