aboutsummaryrefslogtreecommitdiff
path: root/tcl/board
diff options
context:
space:
mode:
authorAndrey Yurovsky <yurovsky@gmail.com>2015-03-30 12:50:13 -0700
committerPaul Fertser <fercerpav@gmail.com>2015-04-16 20:30:34 +0100
commit2cf48d2c79070dba4dd635f09d4b612ca870c3eb (patch)
treece49fd96a705c0ee58b4559378088724e566b74d /tcl/board
parent4ed3a1efa2e653836133cabddb0a7e50150b3bd4 (diff)
flash: at91samd: add SAML21 support, fix part ID issue
This adds support for the new Atmel SAML21 family of low-power Cortex M0+ devices. Their Flash controller is essentially the SAMDxx one so the change consists of adding the new part IDs. Unfortunately the device ID logic had a couple of mistakes in it that did not affect anything on SAMD2x devices (due to 0 values expected there) but that is a problem on L21, it's therefore addressed here and things should now match the datasheets. Tested on Amtel SAML21 Xplained Pro development kit against the included SAML21J18A there. Also tested for regressions on a SAMD20 and SAMD21 using their dev kits. Change-Id: I768f75e064b8656c15148730dacaa4c3acfc4101 Signed-off-by: Andrey Yurovsky <yurovsky@gmail.com> Reviewed-on: http://openocd.zylin.com/2690 Tested-by: jenkins Reviewed-by: Paul Fertser <fercerpav@gmail.com>
Diffstat (limited to 'tcl/board')
-rw-r--r--tcl/board/atmel_saml21_xplained_pro.cfg10
1 files changed, 10 insertions, 0 deletions
diff --git a/tcl/board/atmel_saml21_xplained_pro.cfg b/tcl/board/atmel_saml21_xplained_pro.cfg
new file mode 100644
index 00000000..054bda4d
--- /dev/null
+++ b/tcl/board/atmel_saml21_xplained_pro.cfg
@@ -0,0 +1,10 @@
+#
+# Atmel SAML21 Xplained Pro evaluation kit.
+#
+
+source [find interface/cmsis-dap.cfg]
+
+# chip name
+set CHIPNAME at91saml21j18
+
+source [find target/at91samdXX.cfg]