openocd/src/flash
David Brownell 3d9cb516c2 stellaris: flash protection updates, minor fixes
Bugfix the read side of flash protection:
 - read the right register(s)!
 - handle more than 64K
 - record the results in the right places
 - don't display garbage.

Partially bugfix the write side:
 - use 2KB lock regions instead of 1KB pages (!)
 - validate input range
 - don't try to _remove_ protection (it's write-once)
 - #define values we'll need to commit writes.
 - ... still doesn't handle pages over 64KB mark, or commit writes

And minor cleanup and fixes:
 - get rid of some forward decls
 - properly locate a doxygen comment
 - fix some bad indentation
 - remove superfluous #include
 - add a new part ID (many are still missing)
 - make the downloaded algorithm code be read-only

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
2009-12-09 21:16:09 -08:00
..
nand Comment and doxygen fixes 2009-12-09 10:25:52 -08:00
nor stellaris: flash protection updates, minor fixes 2009-12-09 21:16:09 -08:00
ocl/at91sam7x change #include "ocl.h" to <flash/nor/ocl.h> 2009-12-03 04:24:49 -08:00
common.c change #include "log.h" to <helper/log.h> 2009-12-03 04:22:52 -08:00
common.h split NOR and NAND flash headers 2009-12-04 16:56:23 -08:00
Makefile.am build: add build/src to include path 2009-12-08 10:16:10 +01:00
mflash.c misc code review updates 2009-12-05 14:40:06 -08:00
mflash.h #include "target.h" less wildly 2009-11-16 00:35:24 -08:00
startup.tcl add 'flash list', rewrite 'flash banks' 2009-12-06 21:39:35 -08:00