Karl Palsson
850931dbcd
stm32: flash_unlock_option_bytes is common code.
...
The keys differ between some familes, but the documentation and
implementation are standard.
2018-07-29 20:31:17 +00:00
Karl Palsson
c5a3350a7d
stm32l: flash: rename option unlock keys or consistency
...
Paves the way for using common code.
2018-07-29 20:31:17 +00:00
Karl Palsson
2bf7eb4a0c
stm32: flash: pull set_ws up to common code
...
All that changes is the size of the field.
2018-07-29 20:31:17 +00:00
Karl Palsson
da7ebafcbe
stm32: flash: pull lock/unlock up to common_f.
...
This is a common operation, so definition in _all, and every part except
l0/l1 have the same implementation. Bring in an _f file too.
2018-07-29 20:31:17 +00:00
Karl Palsson
b23dccc7ae
stm32: flash: pull up prefetch to _all
...
Turns out, there's lots of common code for flash. Pull up prefetch
on/off to start with, as there's only a single bit name different.
Pull up the definitions of common API functions too, starting with
flash_set_ws. Even if the implementations are different, things that
meant to be the same, should be defined centrally.
2018-07-29 20:31:17 +00:00
Karl Palsson
ce787c0f40
stm32l1: flash: extract common code
...
Extracted all code that will be common with l0. Compared with ref mans
for l0 and l4. No functional change, just moving things getting ready.
2017-06-08 23:01:45 +00:00