summaryrefslogtreecommitdiffstats
path: root/pm49fl00x.c
diff options
context:
space:
mode:
authorSean Nelson <audiohacked@gmail.com>2010-02-27 18:01:15 +0000
committerSean Nelson <audiohacked@gmail.com>2010-02-27 18:01:15 +0000
commit26aea314d2e27e2e5eb55738f84f6ed4377a24a9 (patch)
tree273e78887f6dd10e549c774e4e3b610d6dce1aeb /pm49fl00x.c
parent507d6c5d46d9b5b40e55ba44cc51575020a280b8 (diff)
downloadflashrom-26aea314d2e27e2e5eb55738f84f6ed4377a24a9.zip
flashrom-26aea314d2e27e2e5eb55738f84f6ed4377a24a9.tar.gz
Since we have a unlock interface for chips, I think we can convert the remaining references to *_49fl00x
Now the only remaining and used function in pm49fl00x.c is unlock_49fl00x. Added missing unlock to AMIC A49LF040A. Added lock_49fl00x function; Trivial change. Corresponding to flashrom svn r917. Signed-off-by: Sean Nelson <audiohacked@gmail.com> Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
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 17a49f0..5e5eec8 100644
--- a/pm49fl00x.c
+++ b/pm49fl00x.c
@@ -43,6 +43,12 @@ int unlock_49fl00x(struct flashchip *flash)
return 0;
}
+int lock_49fl00x(struct flashchip *flash)
+{
+ write_lockbits_49fl00x(flash->virtual_registers, flash->total_size * 1024, 1, flash->page_size);
+ return 0;
+}
+
int erase_49fl00x(struct flashchip *flash)
{
int i;
OpenPOWER on IntegriCloud