From 36172342c8d3b35b7fbec6289f55305466da1abb Mon Sep 17 00:00:00 2001 From: Sean Nelson Date: Sat, 27 Feb 2010 18:01:15 +0000 Subject: Convert the remaining references to *_49fl00x Now the only remaining and used function in pm49fl00x.c is unlock_49fl00x. Also: - Add missing unlock to AMIC A49LF040A. - Add lock_49fl00x function. Corresponding to flashrom svn r917. Signed-off-by: Sean Nelson Acked-by: Carl-Daniel Hailfinger --- pm49fl00x.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'pm49fl00x.c') diff --git a/pm49fl00x.c b/pm49fl00x.c index 17a49f0a..5e5eec83 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; -- cgit v1.2.3