]> git.sur5r.net Git - openocd/commit
flash: at91samd: add SAML21 support, fix part ID issue
authorAndrey Yurovsky <yurovsky@gmail.com>
Mon, 30 Mar 2015 19:50:13 +0000 (12:50 -0700)
committerPaul Fertser <fercerpav@gmail.com>
Thu, 16 Apr 2015 19:30:34 +0000 (20:30 +0100)
commit2cf48d2c79070dba4dd635f09d4b612ca870c3eb
treece49fd96a705c0ee58b4559378088724e566b74d
parent4ed3a1efa2e653836133cabddb0a7e50150b3bd4
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>
src/flash/nor/at91samd.c
tcl/board/atmel_saml21_xplained_pro.cfg [new file with mode: 0644]