Files
sw_openocd/src
David Brownell 5e78ddcea0 NOR: trim range in flash_driver_protect()
When the beginning or end of the specified range of sectors
already has the requested protection status, don't ask the
flash driver to change those sectors.

This will among other things turn command sequences like
this into the NOPs one would expect:

	flash protect_check 0
	flash info 0
		... reports everything as unprotected ...
	flash protect 0 0 1 off

That speeds things up (by whatever work was just avoided).

Also, with Stellaris (which can't unprotect flash at  page level)
this can eliminate some undesirable/false error reports.  (And
finishes fixing a bug currently listed in our bug database...)

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
2010-03-03 21:01:16 -08:00
..
2010-02-15 22:59:41 +01:00
2010-03-01 15:41:49 +01:00
2010-01-08 23:23:55 -08:00
2010-01-26 17:54:49 -08:00
2010-01-08 20:16:05 -08:00
2010-01-08 23:13:39 -08:00
2009-11-25 10:29:05 -08:00
2010-02-15 22:59:41 +01:00