flash/stm32l4x: remove stm32l4_part_info.default_flash_regs
This struct element is replaced by the usage of F_HAS_L5_FLASH_REGS flag: since over this driver stm32l4_flash_regs is the default register layout, and the only exception is STM32L5 family, so it's simpler to manage it using a flag. Note: the same flag will be used with STM32U5 devices, as they have the same registers layout, which explains the move of stm32l5_s_flash_regs before the switch(device_id) in order to not re-write this for STM32U5. Change-Id: I3b67a6f558d9350f609a22524012b6fceb7de7c2 Signed-off-by: Tarek BOCHKATI <tarek.bouchkati@gmail.com> Reviewed-on: https://review.openocd.org/c/openocd/+/6435 Reviewed-by: Oleksij Rempel <linux@rempel-privat.de> Tested-by: jenkins
This commit is contained in:
committed by
Oleksij Rempel
parent
1247eee4e6
commit
e7e46ba61e
@@ -75,4 +75,6 @@
|
||||
#define STM32_FLASH_BANK_BASE 0x08000000
|
||||
#define STM32_FLASH_S_BANK_BASE 0x0C000000
|
||||
|
||||
#define STM32L5_REGS_SEC_OFFSET 0x10000000
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user