diff options
author | Andrey Yurovsky <yurovsky@gmail.com> | 2013-10-03 20:41:33 -0700 |
---|---|---|
committer | Spencer Oliver <spen@spen-soft.co.uk> | 2014-01-09 15:23:27 +0000 |
commit | 215c41c0174e94ab00b36a7d56a054cdd7f30dd0 (patch) | |
tree | f0e4f7d5cb0c6481a0a5e8f27a2c03bfd7bdd64c /src/flash/nor/drivers.c | |
parent | 9cabe333e14435ed9c92bfcf31b1685634ca1acf (diff) |
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>
Diffstat (limited to 'src/flash/nor/drivers.c')
-rw-r--r-- | src/flash/nor/drivers.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/flash/nor/drivers.c b/src/flash/nor/drivers.c index b85ff13a..39c2f9fc 100644 --- a/src/flash/nor/drivers.c +++ b/src/flash/nor/drivers.c @@ -30,6 +30,7 @@ extern struct flash_driver cfi_flash; extern struct flash_driver at91sam3_flash; extern struct flash_driver at91sam4_flash; extern struct flash_driver at91sam4l_flash; +extern struct flash_driver at91samd_flash; extern struct flash_driver at91sam7_flash; extern struct flash_driver str7x_flash; extern struct flash_driver str9x_flash; @@ -69,6 +70,7 @@ static struct flash_driver *flash_drivers[] = { &at91sam3_flash, &at91sam4_flash, &at91sam4l_flash, + &at91samd_flash, &str7x_flash, &str9x_flash, &aduc702x_flash, |