From 9cabe333e14435ed9c92bfcf31b1685634ca1acf Mon Sep 17 00:00:00 2001 From: Andrey Yurovsky Date: Thu, 19 Sep 2013 13:59:09 -0700 Subject: add support for Atmel SAM4L NOR Flash MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This adds a new NOR Flash driver, "at91sam4l", which supports the built-in Flash on Atmel's low-power SAM4L family of Cortex M4 MCUs. Parts and their geometry are detected automatically using the Chip ID and lookup schemes described in document 42023E–SAM–07/2013. Tested on AT91SAM4LC4CA via the SAM4L XPlained Pro development kit. Change-Id: If73499dee92cc8ce231845244ea25c6984f6cecd Signed-off-by: Andrey Yurovsky Reviewed-on: http://openocd.zylin.com/1639 Tested-by: jenkins Reviewed-by: Spencer Oliver --- tcl/target/at91sam4lXX.cfg | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tcl/target') diff --git a/tcl/target/at91sam4lXX.cfg b/tcl/target/at91sam4lXX.cfg index 67759bc6..590d78f3 100644 --- a/tcl/target/at91sam4lXX.cfg +++ b/tcl/target/at91sam4lXX.cfg @@ -3,4 +3,6 @@ source [find target/at91sam4XXX.cfg] -# no flash defined yet +set _FLASHNAME $_CHIPNAME.flash +flash bank $_FLASHNAME at91sam4l 0x00000000 0 1 1 $_TARGETNAME + -- cgit v1.2.3-18-g5258