Skip to content
Snippets Groups Projects
Commit 77a1c01c authored by Tomas Vanek's avatar Tomas Vanek Committed by Andreas Fritiofson
Browse files

flash/nor: implement protection blocks of different size than erase sector


Originally flash/nor infrastructure assumed protection blocks identical
to erase sectors. This assumption is not valid for many flash types.
Driver code fixed the problem either by increasing sector size to
size of protection block or by defining more protection block than
really existed in device. Both cases had drawbacks.

The change retains compatibility with the old driver.
Updated driver can set protection blocks table independent
of sector table.

Change-Id: I27f6d267528ad9ed9fe0a85f05436a8ec17603a4
Signed-off-by: default avatarTomas Vanek <vanekt@fbl.cz>
Reviewed-on: http://openocd.zylin.com/3545


Tested-by: jenkins
Reviewed-by: default avatarSteven Stallion <stallion@squareup.com>
Reviewed-by: default avatarAndreas Fritiofson <andreas.fritiofson@gmail.com>
parent 77478eb0
Branches
Tags
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment