summaryrefslogtreecommitdiffstats
path: root/pm29f002.c
diff options
context:
space:
mode:
Diffstat (limited to 'pm29f002.c')
-rw-r--r--pm29f002.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/pm29f002.c b/pm29f002.c
index a01df88..bf78d13 100644
--- a/pm29f002.c
+++ b/pm29f002.c
@@ -20,18 +20,20 @@
#include "flash.h"
+/* if write_sector_jedec is used,
+ this is write_jedec_1 */
int write_pm29f002(struct flashchip *flash, uint8_t *buf)
{
int i, total_size = flash->total_size * 1024;
chipaddr bios = flash->virtual_memory;
chipaddr dst = bios;
- /* Pm29F002T/B use the same erase method... */
- if (erase_29f040b(flash)) {
+ if (erase_flash(flash)) {
fprintf(stderr, "ERASE FAILED!\n");
return -1;
}
+ /* FIXME: use write_sector_jedec? */
printf("Programming page: ");
for (i = 0; i < total_size; i++) {
if ((i & 0xfff) == 0)
OpenPOWER on IntegriCloud