flash/nor/numicro: reorder the parts list
commit776e045de0a2ce6644ae19de99820f02628dfbcc
authorZale Yu <cyyu@nuvoton.com>
Sun, 6 Nov 2022 14:54:37 +0000 (6 22:54 +0800)
committerAntonio Borneo <borneo.antonio@gmail.com>
Sun, 15 Jan 2023 15:01:23 +0000 (15 15:01 +0000)
tree9d736bf0ed1f87baee318ca00fde0f88e2fef561
parent11ee500bffe488eba95cea37c99cee6b196e04ff
flash/nor/numicro: reorder the parts list

This patch is picked from the flash part of OpenOCD-Nuvoton's commit
("flash: supported Nuvoton M4 series. jtag: Used HW reset instead of
auto reset. tcl: added a configuration file for Nuvoton M4 series.") [1]
It reorders Nuvoton MCU part list and spreads out the way to define the
banks' base address & size of the parts.

The code comes from the commit basically. Jian-Hong Pan tweaked for the
compatibility with current OpenOCD. So, leave the author as Zale Yu.

[1]: https://github.com/OpenNuvoton/OpenOCD-Nuvoton/commit/c2d5b8bfc705

Signed-off-by: Zale Yu <cyyu@nuvoton.com>
Signed-off-by: Jian-Hong Pan <chienhung.pan@gmail.com>
Change-Id: I1f21f54dfdf53e5b8ea04d803347d1dbc8c321a0
Reviewed-on: https://review.openocd.org/c/openocd/+/7339
Tested-by: jenkins
Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
src/flash/nor/numicro.c