add support for Atmel SAMD NOR Flash
commit215c41c0174e94ab00b36a7d56a054cdd7f30dd0
authorAndrey Yurovsky <yurovsky@gmail.com>
Fri, 4 Oct 2013 03:41:33 +0000 (3 20:41 -0700)
committerSpencer Oliver <spen@spen-soft.co.uk>
Thu, 9 Jan 2014 15:23:27 +0000 (9 15:23 +0000)
treef0e4f7d5cb0c6481a0a5e8f27a2c03bfd7bdd64c
parent9cabe333e14435ed9c92bfcf31b1685634ca1acf
add support for Atmel SAMD NOR Flash

This adds a new NOR Flash driver, "at91samd", which supports the
built-in Flash on Atmel's D-series Cortex M MCUs, starting with the D20.
Parts and their geometry are detected automatically using the DSU and
lookup schemes described in the D20 document, 42129F–SAM–10/2013.
Future D-series variants and families should presumably use this
controller as well (possibly with minor changes and improvements).

Tested on the SAMD20 Xplained Pro board, for which we also add the
corresponding Flash configuration.

Change-Id: Id8d3dd601e9f53121682d1a1190d0be4ea3b83eb
Signed-off-by: Andrey Yurovsky <yurovsky@gmail.com>
Reviewed-on: http://openocd.zylin.com/1684
Tested-by: jenkins
Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
src/flash/nor/Makefile.am
src/flash/nor/at91samd.c [new file with mode: 0644]
src/flash/nor/drivers.c
tcl/target/at91samdXX.cfg