summaryrefslogtreecommitdiff
path: root/util/flashrom/sharplhf00l04.c
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2007-08-23 16:08:21 +0000
committerUwe Hermann <uwe@hermann-uwe.de>2007-08-23 16:08:21 +0000
commitba9ce9f7f986ba2a3f4d88b7cb53e0704b7d2708 (patch)
tree9ad9be681febfa96ecca8a7ee024f52f96d2b66f /util/flashrom/sharplhf00l04.c
parent0a6bb9106263eead0dd35d68be90ab52223488d5 (diff)
downloadcoreboot-ba9ce9f7f986ba2a3f4d88b7cb53e0704b7d2708.tar.xz
Cosmetic fixes (trivial).
Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de> Acked-by: Uwe Hermann <uwe@hermann-uwe.de> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@2748 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'util/flashrom/sharplhf00l04.c')
-rw-r--r--util/flashrom/sharplhf00l04.c15
1 files changed, 9 insertions, 6 deletions
diff --git a/util/flashrom/sharplhf00l04.c b/util/flashrom/sharplhf00l04.c
index 1c93cc6620..86d8799ad5 100644
--- a/util/flashrom/sharplhf00l04.c
+++ b/util/flashrom/sharplhf00l04.c
@@ -77,7 +77,6 @@ int probe_lhf00l04(struct flashchip *flash)
uint8_t wait_lhf00l04(volatile uint8_t *bios)
{
-
uint8_t status;
uint8_t id1, id2;
@@ -100,9 +99,10 @@ uint8_t wait_lhf00l04(volatile uint8_t *bios)
*(volatile uint8_t *)(bios + 0x5555) = 0xAA;
*(volatile uint8_t *)(bios + 0x2AAA) = 0x55;
*(volatile uint8_t *)(bios + 0x5555) = 0xF0;
- return status;
+ return status;
}
+
int erase_lhf00l04_block(struct flashchip *flash, int offset)
{
volatile uint8_t *bios = flash->virtual_memory + offset;
@@ -128,8 +128,10 @@ int erase_lhf00l04_block(struct flashchip *flash, int offset)
status = wait_lhf00l04(flash->virtual_memory);
print_lhf00l04_status(status);
printf("DONE BLOCK 0x%x\n", offset);
- return (0);
+
+ return 0;
}
+
int erase_lhf00l04(struct flashchip *flash)
{
int i;
@@ -140,7 +142,8 @@ int erase_lhf00l04(struct flashchip *flash)
for (i = 0; i < total_size; i += flash->page_size)
erase_lhf00l04_block(flash, i);
printf("DONE ERASE\n");
- return (0);
+
+ return 0;
}
void write_page_lhf00l04(volatile uint8_t *bios, uint8_t *src,
@@ -154,7 +157,6 @@ void write_page_lhf00l04(volatile uint8_t *bios, uint8_t *src,
*dst++ = *src++;
wait_lhf00l04(bios);
}
-
}
int write_lhf00l04(struct flashchip *flash, uint8_t *buf)
@@ -178,5 +180,6 @@ int write_lhf00l04(struct flashchip *flash, uint8_t *buf)
}
printf("\n");
protect_jedec(bios);
- return (0);
+
+ return 0;
}