Files
openocd/src/flash/nor
Tarek BOCHKATI dc43ecce5a flash/stm32l4x: introduce table with register offsets
This change is a preparation for STM32L5 support on top of L4 driver
STM32L5 flash is quite similar to L4 flash, mainly register names
and offsets and some bits are changed.

flash_regs table is introduced within stm32l4_flash_bank struct in order
to get correct register offsets, by using the driver internal function
'stm32l4_get_flash_reg_by_index'.

To use efficiently register indexes, stm32l4 _[get|read|write]_flash_reg
functions are surcharged to accept register indexes.

IMPORTANT: stm32l4_write_option is not surcharged, and they always accept
the option register offset.

tested on NUCLEO-G474RE and STM32L4R9I-DISCO

Change-Id: I739d3e97d63b831af6aa569c5629db0000209551
Signed-off-by: Tarek BOCHKATI <tarek.bouchkati@gmail.com>
Reviewed-on: http://openocd.zylin.com/5509
Tested-by: jenkins
Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-by: Tomas Vanek <vanekt@fbl.cz>
2020-11-15 21:42:17 +00:00
..
2020-09-05 17:12:32 +01:00
2020-09-05 17:12:32 +01:00
2020-03-07 15:31:09 +00:00
2020-09-05 17:12:32 +01:00
2020-07-08 22:05:52 +01:00
2020-09-05 17:12:32 +01:00
2020-07-26 20:13:22 +01:00
2020-09-05 17:12:32 +01:00
2020-11-07 20:52:00 +00:00
2020-07-08 22:08:08 +01:00
2020-10-28 10:51:57 +00:00
2020-07-26 20:13:22 +01:00
2020-11-04 17:39:05 +00:00
2020-08-02 10:47:29 +01:00
2020-07-26 20:13:22 +01:00
2020-07-26 20:13:22 +01:00
2020-09-05 17:12:32 +01:00
2020-11-04 17:39:05 +00:00