flash/nor/stm32h7x: remove stm32x_options.protection2 90/5290/3
authorTarek BOCHKATI <tarek.bouchkati@gmail.com>
Thu, 29 Aug 2019 15:03:19 +0000 (17:03 +0200)
committerTomas Vanek <vanekt@fbl.cz>
Wed, 27 Nov 2019 06:16:28 +0000 (06:16 +0000)
commit1b276c0ad56ed7d1ef72787b6bee885ac5d063a8
tree97ea7eb01a173bed7605f99d919cd31a39fa8f27
parent21bc29d1d66d3860e1343248864b9fa9f4b87280
flash/nor/stm32h7x: remove stm32x_options.protection2

Each bank had to store its options only, there is no need for bank1
to sneak into bank2 options.
Furthermore, some variants do not have a second bank.

Change-Id: I9229eb8ab4b5860ba2b0c5dbe626a54a84bca4d6
Signed-off-by: Tarek BOCHKATI <tarek.bouchkati@gmail.com>
Reviewed-on: http://openocd.zylin.com/5290
Tested-by: jenkins
Reviewed-by: Christopher Head <chead@zaber.com>
Reviewed-by: Tomas Vanek <vanekt@fbl.cz>
src/flash/nor/stm32h7x.c