diff options
Diffstat (limited to 'pm49fl00x.c')
-rw-r--r-- | pm49fl00x.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/pm49fl00x.c b/pm49fl00x.c index 3b284e6b..27a1163a 100644 --- a/pm49fl00x.c +++ b/pm49fl00x.c @@ -22,8 +22,6 @@ #include "flash.h" -extern int exclude_start_page, exclude_end_page; - void write_lockbits_49fl00x(chipaddr bios, int size, unsigned char bits, int block_size) { @@ -64,9 +62,6 @@ int erase_49fl00x(struct flashchip *flash) */ printf("Erasing page: "); for (i = 0; i < total_size / page_size; i++) { - if ((i >= exclude_start_page) && (i < exclude_end_page)) - continue; - /* erase the page */ if (erase_block_jedec(flash, i * page_size, page_size)) { fprintf(stderr, "ERASE FAILED!\n"); @@ -98,9 +93,6 @@ int write_49fl00x(struct flashchip *flash, uint8_t *buf) printf("Programming page: "); for (i = 0; i < total_size / page_size; i++) { - if ((i >= exclude_start_page) && (i < exclude_end_page)) - continue; - /* erase the page before programming */ if (erase_block_jedec(flash, i * page_size, page_size)) { fprintf(stderr, "ERASE FAILED!\n"); |