summaryrefslogtreecommitdiff
path: root/util/flashrom/sst49lf040.c
diff options
context:
space:
mode:
Diffstat (limited to 'util/flashrom/sst49lf040.c')
-rw-r--r--util/flashrom/sst49lf040.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/util/flashrom/sst49lf040.c b/util/flashrom/sst49lf040.c
index 36537f24de..0d31d8272e 100644
--- a/util/flashrom/sst49lf040.c
+++ b/util/flashrom/sst49lf040.c
@@ -31,16 +31,16 @@
int erase_49lf040(struct flashchip *flash)
{
- int i;
- int total_size = flash->total_size * 1024;
- int page_size = flash->page_size;
- volatile uint8_t *bios = flash->virt_addr;
+ int i;
+ int total_size = flash->total_size * 1024;
+ int page_size = flash->page_size;
+ volatile uint8_t *bios = flash->virt_addr;
- for (i = 0; i < total_size / page_size; i++) {
+ for (i = 0; i < total_size / page_size; i++) {
/* Chip erase only works in parallel programming mode
* for the 49lf040. Use sector-erase instead */
erase_sector_jedec(bios, i * page_size);
- }
+ }
return 0;
}
@@ -60,7 +60,7 @@ int write_49lf040(struct flashchip *flash, uint8_t *buf)
/* write to the sector */
printf("%04d at address: 0x%08x ", i, i * page_size);
-
+
write_sector_jedec(bios, buf + i * page_size,
bios + i * page_size, page_size);