Skip to content
Commit 972e1b7b authored by Austin Boyle's avatar Austin Boyle Committed by Artem Bityutskiy
Browse files

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: default avatarAustin Boyle <Austin.Boyle@aviatnet.com>
Signed-off-by: default avatarArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
parent aca662a3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment