aboutsummaryrefslogtreecommitdiff
path: root/src/flash/nor/lpcspifi.c
diff options
context:
space:
mode:
authorPaul Fertser <fercerpav@gmail.com>2013-07-23 20:15:32 +0400
committerAndreas Fritiofson <andreas.fritiofson@gmail.com>2013-07-26 14:20:35 +0000
commit3b4a8af80d9cf3fb370c1177c2cf81f9c0a2e5e9 (patch)
tree0500dca6a9ed9a40020712f1c16608258fde2379 /src/flash/nor/lpcspifi.c
parent421283941b8c5a2a86b34dead635e7f386e2fa5e (diff)
lpcspifi: assume flash is unprotected after probing
Since the driver doesn't support any hardware flash protection, it doesn't make sense to report "protected" status after probing, as it requires extra commands to unprotect before flashing and might be confusing for the end-users. Change-Id: I04d96790cc42412df5334951f39fb6723c972ced Signed-off-by: Paul Fertser <fercerpav@gmail.com> Reviewed-on: http://openocd.zylin.com/1525 Tested-by: jenkins Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
Diffstat (limited to 'src/flash/nor/lpcspifi.c')
-rw-r--r--src/flash/nor/lpcspifi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/flash/nor/lpcspifi.c b/src/flash/nor/lpcspifi.c
index dfd8645e..0c12e641 100644
--- a/src/flash/nor/lpcspifi.c
+++ b/src/flash/nor/lpcspifi.c
@@ -913,7 +913,7 @@ static int lpcspifi_probe(struct flash_bank *bank)
sectors[sector].offset = sector * lpcspifi_info->dev->sectorsize;
sectors[sector].size = lpcspifi_info->dev->sectorsize;
sectors[sector].is_erased = -1;
- sectors[sector].is_protected = 1;
+ sectors[sector].is_protected = 0;
}
bank->sectors = sectors;