flash/nor: flash driver and cfg for SAM E54, E53, E51 and D51
commitdeaf3d264123391d8fe5c4cccbf8fb8852e1be23
authorTomas Vanek <vanekt@fbl.cz>
Fri, 27 Oct 2017 19:43:25 +0000 (27 21:43 +0200)
committerTomas Vanek <vanekt@fbl.cz>
Tue, 5 Feb 2019 17:45:18 +0000 (5 17:45 +0000)
tree321b1363c50f907a1aa1e81e5d1e2e046f6c0848
parent346ce2f13f48f36550b2a1a3862801496e20c81b
flash/nor: flash driver and cfg for SAM E54, E53, E51 and D51

The new Microchip (former Atmel) series powered by Cortex-M4 looks
very similar to older M0+ powered SAM D2x at the first sight.
Unfortunately the new series differs a lot in important details.
NVMCTRL has different register addresses, moved important bits
and even changed binary command set. An universal driver for all SAM D/E
would be very complicated. That's why a new driver was derived.

Tested on Microchip SAM E54 Xplained Pro kit (board cfg included).

Adjusted for the restructured dap support.
Checked by valgrind and clang static analyzer.

Change-Id: I26c67047a552076f4b207b9b89285a53d69b4ca4
Signed-off-by: Tomas Vanek <vanekt@fbl.cz>
Reviewed-on: http://openocd.zylin.com/4272
Tested-by: jenkins
Reviewed-by: Andres Vahter <andres.vahter@gmail.com>
doc/openocd.texi
src/flash/nor/Makefile.am
src/flash/nor/atsame5.c [new file with mode: 0644]
src/flash/nor/drivers.c
tcl/board/microchip_same54_xplained_pro.cfg [new file with mode: 0644]
tcl/target/atsame5x.cfg [new file with mode: 0644]