mirror of
https://review.coreboot.org/flashrom.git
synced 2025-07-01 22:21:16 +02:00
Check result of all SPI erase functions
Since block erase functions do not know the block length (it's not specified in any standard), block erase functions now get an additional parameter blocklen. This enables flashrom to verify the erase result for block erase functions at correct boundaries. Tested by Uwe on SB600. Corresponding to flashrom svn r630. Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
This commit is contained in:
2
ichspi.c
2
ichspi.c
@ -661,7 +661,7 @@ int ich_spi_write_256(struct flashchip *flash, uint8_t * buf)
|
||||
* For this, we need to add a block erase function to
|
||||
* struct flashchip.
|
||||
*/
|
||||
rc = spi_block_erase_d8(flash, i * erase_size);
|
||||
rc = spi_block_erase_d8(flash, i * erase_size, erase_size);
|
||||
if (rc) {
|
||||
printf("Error erasing block at 0x%x\n", i);
|
||||
break;
|
||||
|
Reference in New Issue
Block a user