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>
This commit is contained in:
parent
421283941b
commit
3b4a8af80d
|
@ -913,7 +913,7 @@ static int lpcspifi_probe(struct flash_bank *bank)
|
||||||
sectors[sector].offset = sector * lpcspifi_info->dev->sectorsize;
|
sectors[sector].offset = sector * lpcspifi_info->dev->sectorsize;
|
||||||
sectors[sector].size = lpcspifi_info->dev->sectorsize;
|
sectors[sector].size = lpcspifi_info->dev->sectorsize;
|
||||||
sectors[sector].is_erased = -1;
|
sectors[sector].is_erased = -1;
|
||||||
sectors[sector].is_protected = 1;
|
sectors[sector].is_protected = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
bank->sectors = sectors;
|
bank->sectors = sectors;
|
||||||
|
|
Loading…
Reference in New Issue