aboutsummaryrefslogtreecommitdiff
path: root/src/flash/nor/at91sam4.c
diff options
context:
space:
mode:
authorEvan Hunter <ehunter@broadcom.com>2015-07-17 13:22:06 +0100
committerSpencer Oliver <spen@spen-soft.co.uk>2015-08-06 13:16:33 +0100
commita769be6b9c9dea7e498535eba0a0255f1e785575 (patch)
tree70b90bd9b6f6ac1b6e122adff2f6682f3dda102c /src/flash/nor/at91sam4.c
parent72466de39931cbe872db367c878c5ed17a4b67f3 (diff)
downloadriscv-openocd-a769be6b9c9dea7e498535eba0a0255f1e785575.zip
riscv-openocd-a769be6b9c9dea7e498535eba0a0255f1e785575.tar.gz
riscv-openocd-a769be6b9c9dea7e498535eba0a0255f1e785575.tar.bz2
flash : Add support for Atmel at91sam4sa16b
Change-Id: Ief6833b4bf587fbf53c8fbeee2fc276a95ca0a8a Signed-off-by: Evan Hunter <ehunter@broadcom.com> Reviewed-on: http://openocd.zylin.com/2878 Tested-by: jenkins Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
Diffstat (limited to 'src/flash/nor/at91sam4.c')
-rw-r--r--src/flash/nor/at91sam4.c33
1 files changed, 33 insertions, 0 deletions
diff --git a/src/flash/nor/at91sam4.c b/src/flash/nor/at91sam4.c
index 57f24ba..c40d085 100644
--- a/src/flash/nor/at91sam4.c
+++ b/src/flash/nor/at91sam4.c
@@ -363,6 +363,39 @@ static const struct sam4_chip_details all_sam4_details[] = {
},
},
},
+ /*atsam4sa16b - LQFP64/QFN64*/
+ {
+ .chipid_cidr = 0x28970CE0,
+ .name = "at91sam4sa16b",
+ .total_flash_size = 1024 * 1024,
+ .total_sram_size = 160 * 1024,
+ .n_gpnvms = 2,
+ .n_banks = 1,
+ {
+/* .bank[0] = {*/
+ {
+ .probed = 0,
+ .pChip = NULL,
+ .pBank = NULL,
+ .bank_number = 0,
+ .base_address = FLASH_BANK_BASE_S,
+ .controller_address = 0x400e0a00,
+ .flash_wait_states = 6, /* workaround silicon bug */
+ .present = 1,
+ .size_bytes = 1024 * 1024,
+ .nsectors = 128,
+ .sector_size = 8192,
+ .page_size = 512,
+ },
+/* .bank[1] = {*/
+ {
+ .present = 0,
+ .probed = 0,
+ .bank_number = 1,
+
+ },
+ },
+ },
/*atsam4s16a - LQFP48/QFN48*/
{
.chipid_cidr = 0x288C0CE0,