MTD: Add lock/unlock operations for Atmel AT49BV6416
authorHaavard Skinnemoen <hskinnemoen@atmel.com>
Wed, 9 Aug 2006 09:06:07 +0000 (11:06 +0200)
committerJosh Boyer <jwboyer@gmail.com>
Thu, 17 Aug 2006 01:16:43 +0000 (20:16 -0500)
commit0165508c80a2b5d5268d9c5dfa9b30c534a33693
tree255a014b260457d19bc52070fa7b2d72a61750bb
parent5b0c5c2c0d04c29f85abb485378ba5476c7aeec2
MTD: Add lock/unlock operations for Atmel AT49BV6416

The AT49BV6416 is locked by default, so we really need to provide
at least the unlock() operation for write and erase to work. This
patch implements both ->lock() and ->unlock() and provides a fixup
to install them when an AT49BV6416 chip is detected.

These functions are probably valid on more Atmel chips, but I believe
it's mostly obsolete ones. The AT49BV6416 is in fact obsolete, but
it's used on all current AT32STK1000 development boards.

Signed-off-by: Haavard Skinnemoen <hskinnemoen@atmel.com>
Signed-off-by: Josh Boyer <jwboyer@gmail.com>
drivers/mtd/chips/cfi_cmdset_0002.c