
Hello Jagan,
On Wed, Sep 23, 2015 at 12:56 PM, Jagan Teki jteki@openedev.com wrote:
All looks fine as per your patches, but probing flash from board files isn't a good approach if one more board add similar approach.
I have an idea similar to "cfi_flash" approach.
"sf protect on off len" then based on the offset and len write the protected bits and skips the sectors which are protected by showing warning say "protected sectors will not be erased!" [1]
Use the Linux approach[2] for more information, let me know for any more inputs.
[1] http://www.denx.de/wiki/view/DULG/UBootCmdGroupFlash#Section_5.9.3.4. [2] http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/driver...
I think this is a good option however, can we include this one for this release and we can improve it for next?