flash/stm32h7x: use alignment infrastructure
authorChristopher Head <chead@zaber.com>
Fri, 3 Jan 2020 22:49:16 +0000 (14:49 -0800)
committerTomas Vanek <vanekt@fbl.cz>
Sun, 23 Feb 2020 12:38:38 +0000 (12:38 +0000)
commita6dacdff58ef36fcdac00c53ec27f19de1fbce0d
tree5915b1cc0f15b0fd354a4d07897e493304954112
parent2a60ae7fee192db54240e5929d6434c0eb3e190d
flash/stm32h7x: use alignment infrastructure

Report the 32-byte alignemnt requirement via the bank structure rather
than enforcing it ad-hoc in the write routine. This allows people to do
non-32-byte-aligned writes if they want, with the infrastructure fixing
up the addresses passed to the low-level driver.

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