diff options
author | Austin Boyle <Austin.Boyle@aviatnet.com> | 2013-01-04 13:02:28 +1300 |
---|---|---|
committer | Artem Bityutskiy <artem.bityutskiy@linux.intel.com> | 2013-02-04 09:26:29 +0200 |
commit | 972e1b7b450a93589b2a4c709e68f68da059aa5c (patch) | |
tree | 0611caf8ab75df49896c6c7890a96a7513fef88e /drivers/char/ds1302.c | |
parent | aca662a3b1c9b178536267da9fb2f0faa798cb7f (diff) | |
download | talos-op-linux-972e1b7b450a93589b2a4c709e68f68da059aa5c.tar.gz talos-op-linux-972e1b7b450a93589b2a4c709e68f68da059aa5c.zip |
mtd: m25p80: Flash protection support for STmicro chips
This patch adds generic support for flash protection on STmicro chips.
On chips with less than 3 protection bits, the unused bits are don't cares
and so can be written anyway. The lock function will only change the
protection bits if it would not unlock other areas. Similarly, the unlock
function will not lock currently unlocked areas. Tested on the m25p64.
Signed-off-by: Austin Boyle <Austin.Boyle@aviatnet.com>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Diffstat (limited to 'drivers/char/ds1302.c')
0 files changed, 0 insertions, 0 deletions