summaryrefslogtreecommitdiffstats
path: root/pm49fl00x.c
diff options
context:
space:
mode:
Diffstat (limited to 'pm49fl00x.c')
-rw-r--r--pm49fl00x.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/pm49fl00x.c b/pm49fl00x.c
index 9d104e2..e8c498d 100644
--- a/pm49fl00x.c
+++ b/pm49fl00x.c
@@ -36,6 +36,12 @@ void write_lockbits_49fl00x(chipaddr bios, int size,
}
}
+int unlock_49fl00x(struct flashchip *flash)
+{
+ write_lockbits_49fl00x(flash->virtual_registers, flash->total_size * 1024, 0, flash->page_size);
+ return 0;
+}
+
int erase_49fl00x(struct flashchip *flash)
{
int i;
OpenPOWER on IntegriCloud