openocd/src/flash
David Brownell 5fdf9535ce NOR: invalidate cached state on target resume
The NOR infrastructure caches some per-sector state, but
it's not used much ... because the cache is not trustworthy.

This patch addresses one part of that problem, by ensuring
that state cached by NOR drivers gets invalidated once we
resume the target -- since targets may then modify sectors.

Now if we see sector protection or erase status marked as
anything other than "unknown", we should be able to rely
on that as being accurate.  (That is ... if we assume the
drivers initialize and update this state correctly.)

Another part of that problem is that the cached state isn't
much used (being unreliable, it would have been unsafe).
Those issues can be addressed in later patches.

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
2010-03-03 20:57:49 -08:00
..
nand NAND: lpc3180 crashes on LPC3250 2010-01-16 12:27:45 -08:00
nor NOR: invalidate cached state on target resume 2010-03-03 20:57:49 -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 MFLASH: help/usage updates 2010-01-08 20:12:18 -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