riscv-openocd/src/flash/nor
Tomas Vanek 9542cb7c3d flash/nor: consolidate flash protect/protect_check
Make flash_driver methods protect() and protect_check()
optional.

Remove dummy definitions of these methods from the drivers
which do not implement protection handling.

Some drivers did not define protect method. It raised segfault
before this change and now it is handled properly.

Lot of drivers returned ERROR_OK from dummy protect()
- now flash_driver_protect() returns an error if not handled by the driver.

Change-Id: I2d4a0da316bf03c6379791b1b1c6198fbf22e66c
Signed-off-by: Tomas Vanek <vanekt@fbl.cz>
Reviewed-on: http://openocd.zylin.com/4765
Tested-by: jenkins
Reviewed-by: Andreas Bolsch <hyphen0break@gmail.com>
Reviewed-by: Christopher Head <chead@zaber.com>
2018-11-26 09:31:35 +00:00
..
Makefile.am esirisc: support eSi-RISC targets 2018-10-16 11:58:24 +01:00
aduc702x.c flash/nor: consolidate flash protect/protect_check 2018-11-26 09:31:35 +00:00
aducm360.c flash/nor: consolidate flash protect/protect_check 2018-11-26 09:31:35 +00:00
ambiqmicro.c flash/nor: implement flash bank deallocation in drivers with simple alloc 2018-04-04 20:14:18 +01:00
at91sam3.c flash/nor/at91sam: implement flash bank deallocation for SAM series 2018-04-10 06:19:01 +01:00
at91sam4.c flash/at91sam4: fix clang static analyzer warning 2018-08-21 19:26:14 +01:00
at91sam4l.c flash/nor/at91sam: implement flash bank deallocation for SAM series 2018-04-10 06:19:01 +01:00
at91sam7.c target, flash: prepare infrastructure for multi-block blank check 2018-04-10 06:16:40 +01:00
at91samd.c flash/nor/at91samd: add SAMR21E19A DID 2018-11-02 11:55:49 +00:00
ath79.c flash/nor: implement flash bank deallocation in drivers with simple alloc 2018-04-04 20:14:18 +01:00
atsamv.c flash/nor: implement flash bank deallocation in drivers with simple alloc 2018-04-04 20:14:18 +01:00
avrf.c flash/nor: consolidate flash protect/protect_check 2018-11-26 09:31:35 +00:00
bluenrg-x.c Fix for warnings detected by clang static analyzer 2018-04-04 21:23:57 +01:00
cc26xx.c flash/nor: consolidate flash protect/protect_check 2018-11-26 09:31:35 +00:00
cc26xx.h flash/nor: Add support for TI CC26xx/CC13xx flash 2018-06-15 20:06:25 +01:00
cc3220sf.c flash/nor: consolidate flash protect/protect_check 2018-11-26 09:31:35 +00:00
cc3220sf.h flash/nor: Add support for TI CC3220SF internal flash 2018-06-06 15:38:25 +01:00
cfi.c flash/nor: consolidate flash protect/protect_check 2018-11-26 09:31:35 +00:00
cfi.h cfi: Add support for strangely endianness broken SoC implementations 2016-06-23 07:39:57 +01:00
core.c flash/nor: consolidate flash protect/protect_check 2018-11-26 09:31:35 +00:00
core.h flash/nor: handle flash write alignment/padding in the infrastructure 2018-04-10 06:17:52 +01:00
driver.h flash/nor: consolidate flash protect/protect_check 2018-11-26 09:31:35 +00:00
drivers.c esirisc: support eSi-RISC targets 2018-10-16 11:58:24 +01:00
dsp5680xx_flash.c Remove FSF address from GPL notices 2016-05-24 22:30:01 +01:00
efm32.c efm32: correct erase address if bank->base != 0 2018-11-18 08:22:18 +00:00
em357.c flash/nor: implement flash bank deallocation in drivers with simple alloc 2018-04-04 20:14:18 +01:00
esirisc_flash.c esirisc: support eSi-RISC targets 2018-10-16 11:58:24 +01:00
faux.c flash/nor: consolidate flash protect/protect_check 2018-11-26 09:31:35 +00:00
fm3.c flash/nor: implement flash bank deallocation in drivers with simple alloc 2018-04-04 20:14:18 +01:00
fm4.c flash/nor: consolidate flash protect/protect_check 2018-11-26 09:31:35 +00:00
imp.h Make #include guard naming consistent 2016-05-24 22:30:55 +01:00
jtagspi.c flash/nor: consolidate flash protect/protect_check 2018-11-26 09:31:35 +00:00
kinetis.c Fix warnings exposed by GCC8 2018-05-30 09:36:46 +01:00
kinetis_ke.c flash/nor: implement flash bank deallocation in drivers with simple alloc 2018-04-04 20:14:18 +01:00
lpc288x.c flash/nor: consolidate flash protect/protect_check 2018-11-26 09:31:35 +00:00
lpc2000.c flash/nor: consolidate flash protect/protect_check 2018-11-26 09:31:35 +00:00
lpc2900.c flash/nor: consolidate flash protect/protect_check 2018-11-26 09:31:35 +00:00
lpcspifi.c flash/nor: implement flash bank deallocation in drivers with simple alloc 2018-04-04 20:14:18 +01:00
max32xxx.c max32xxx: Support for MAX32XXX devices. 2018-08-21 19:24:58 +01:00
mdr.c flash/nor: consolidate flash protect/protect_check 2018-11-26 09:31:35 +00:00
mrvlqspi.c flash/nor: consolidate flash protect/protect_check 2018-11-26 09:31:35 +00:00
msp432.c flash/nor: consolidate flash protect/protect_check 2018-11-26 09:31:35 +00:00
msp432.h flash/nor: add support for TI MSP432 devices 2018-07-18 21:09:23 +01:00
niietcm4.c flash/nor: implement flash bank deallocation in drivers with simple alloc 2018-04-04 20:14:18 +01:00
non_cfi.c Remove FSF address from GPL notices 2016-05-24 22:30:01 +01:00
non_cfi.h Make #include guard naming consistent 2016-05-24 22:30:55 +01:00
nrf5.c flash/nrf5: support for nRF52810 2018-10-08 19:07:05 +01:00
numicro.c flash/nor: implement flash bank deallocation in drivers with simple alloc 2018-04-04 20:14:18 +01:00
ocl.c flash/nor: consolidate flash protect/protect_check 2018-11-26 09:31:35 +00:00
ocl.h Make #include guard naming consistent 2016-05-24 22:30:55 +01:00
pic32mx.c flash/nor: implement flash bank deallocation in drivers with simple alloc 2018-04-04 20:14:18 +01:00
psoc4.c flash/nor: implement flash bank deallocation in drivers with simple alloc 2018-04-04 20:14:18 +01:00
psoc5lp.c flash/nor: consolidate flash protect/protect_check 2018-11-26 09:31:35 +00:00
psoc6.c psoc6: Run flash algorithm asynchronously to improve performance 2018-04-23 20:42:06 +01:00
sim3x.c flash/nor: implement flash bank deallocation in drivers with simple alloc 2018-04-04 20:14:18 +01:00
spi.c spi: add n25q256 flash 2017-12-06 21:06:00 +00:00
spi.h Make #include guard naming consistent 2016-05-24 22:30:55 +01:00
stellaris.c flash/nor: implement flash bank deallocation in drivers with simple alloc 2018-04-04 20:14:18 +01:00
stm32f1x.c flash/nor/stm32f1x: Use of protection blocks, improved option bytes handling 2018-11-03 11:18:18 +00:00
stm32f2x.c flash/stm32f2x: add stm32f7 revision Z identification 2018-09-09 21:10:05 +01:00
stm32h7x.c flash/nor/stm32h7: Fix incorrect comment 2018-07-03 07:48:40 +01:00
stm32l4x.c stm32l4x: Fix stm32l4x dual bank support 2018-11-26 09:28:01 +00:00
stm32lx.c flash/nor: consolidate flash protect/protect_check 2018-11-26 09:31:35 +00:00
stmsmi.c flash/nor: implement flash bank deallocation in drivers with simple alloc 2018-04-04 20:14:18 +01:00
str7x.c flash/nor: implement flash bank deallocation in drivers with simple alloc 2018-04-04 20:14:18 +01:00
str9x.c flash/nor: implement flash bank deallocation in drivers with simple alloc 2018-04-04 20:14:18 +01:00
str9xpec.c flash/nor: implement flash bank deallocation in drivers with simple alloc 2018-04-04 20:14:18 +01:00
tcl.c flash/nor: consolidate flash protect/protect_check 2018-11-26 09:31:35 +00:00
tms470.c src/flash/tms470: remove testing of sectors[].is_erased state 2018-06-15 20:07:22 +01:00
virtual.c flash/nor/virtual: copy missing fields from master flash_bank structure 2018-06-05 11:29:57 +01:00
xcf.c flash/nor: implement flash bank deallocation in drivers with simple alloc 2018-04-04 20:14:18 +01:00
xmc1xxx.c flash/nor: implement flash bank deallocation in drivers with simple alloc 2018-04-04 20:14:18 +01:00
xmc4xxx.c flash/nor: implement flash bank deallocation in drivers with simple alloc 2018-04-04 20:14:18 +01:00