flash: samd: add SAMD10 and SAMD11 part IDs 70/2170/3
authorAndrey Yurovsky <yurovsky@gmail.com>
Thu, 12 Jun 2014 16:57:29 +0000 (09:57 -0700)
committerAndreas Fritiofson <andreas.fritiofson@gmail.com>
Sun, 22 Jun 2014 08:47:49 +0000 (08:47 +0000)
Add part IDs for the new SAMD10 and SAMD11 parts within the Atmel SAMD
family, they have the same Flash controller as the other samd parts and
should be supported by the at91samd driver.  Compile-tested only.

Change-Id: I493ae96a7d7e8d19e607fd9a4b6544a982be42b3
Signed-off-by: Andrey Yurovsky <yurovsky@gmail.com>
Reviewed-on: http://openocd.zylin.com/2170
Tested-by: jenkins
Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
src/flash/nor/at91samd.c

index 17bc8b99cbcafed2b6bee3a609a32580e99a4576..8dfc9e7a4cc4a18328d8c074be9a71307c1ec142 100644 (file)
@@ -61,6 +61,8 @@
 #define SAMD_FAMILY_D          0x00
 #define SAMD_SERIES_20         0x00
 #define SAMD_SERIES_21         0x01
+#define SAMD_SERIES_10         0x02
+#define SAMD_SERIES_11         0x03
 
 struct samd_part {
        uint8_t id;
@@ -69,6 +71,32 @@ struct samd_part {
        uint32_t ram_kb;
 };
 
+/* Known SAMD10 parts */
+static const struct samd_part samd10_parts[] = {
+       { 0x0, "SAMD10D14AMU", 16, 4 },
+       { 0x1, "SAMD10D13AMU", 8, 4 },
+       { 0x2, "SAMD10D12AMU", 4, 4 },
+       { 0x3, "SAMD10D14ASU", 16, 4 },
+       { 0x4, "SAMD10D13ASU", 8, 4 },
+       { 0x5, "SAMD10D12ASU", 4, 4 },
+       { 0x6, "SAMD10C14A", 16, 4 },
+       { 0x7, "SAMD10C13A", 8, 4 },
+       { 0x8, "SAMD10C12A", 4, 4 },
+};
+
+/* Known SAMD11 parts */
+static const struct samd_part samd11_parts[] = {
+       { 0x0, "SAMD11D14AMU", 16, 4 },
+       { 0x1, "SAMD11D13AMU", 8, 4 },
+       { 0x2, "SAMD11D12AMU", 4, 4 },
+       { 0x3, "SAMD11D14ASU", 16, 4 },
+       { 0x4, "SAMD11D13ASU", 8, 4 },
+       { 0x5, "SAMD11D12ASU", 4, 4 },
+       { 0x6, "SAMD11C14A", 16, 4 },
+       { 0x7, "SAMD11C13A", 8, 4 },
+       { 0x8, "SAMD11C12A", 4, 4 },
+};
+
 /* Known SAMD20 parts. See Table 12-8 in 42129F–SAM–10/2013 */
 static const struct samd_part samd20_parts[] = {
        { 0x0, "SAMD20J18A", 256, 32 },
@@ -123,6 +151,10 @@ static const struct samd_family samd_families[] = {
                samd20_parts, ARRAY_SIZE(samd20_parts) },
        { SAMD_PROCESSOR_M0, SAMD_FAMILY_D, SAMD_SERIES_21,
                samd21_parts, ARRAY_SIZE(samd21_parts) },
+       { SAMD_PROCESSOR_M0, SAMD_FAMILY_D, SAMD_SERIES_10,
+               samd10_parts, ARRAY_SIZE(samd10_parts) },
+       { SAMD_PROCESSOR_M0, SAMD_FAMILY_D, SAMD_SERIES_11,
+               samd11_parts, ARRAY_SIZE(samd11_parts) },
 };
 
 struct samd_info {

Linking to existing account procedure

If you already have an account and want to add another login method you MUST first sign in with your existing account and then change URL to read https://review.openocd.org/login/?link to get to this page again but this time it'll work for linking. Thank you.

SSH host keys fingerprints

1024 SHA256:YKx8b7u5ZWdcbp7/4AeXNaqElP49m6QrwfXaqQGJAOk gerrit-code-review@openocd.zylin.com (DSA)
384 SHA256:jHIbSQa4REvwCFG4cq5LBlBLxmxSqelQPem/EXIrxjk gerrit-code-review@openocd.org (ECDSA)
521 SHA256:UAOPYkU9Fjtcao0Ul/Rrlnj/OsQvt+pgdYSZ4jOYdgs gerrit-code-review@openocd.org (ECDSA)
256 SHA256:A13M5QlnozFOvTllybRZH6vm7iSt0XLxbA48yfc2yfY gerrit-code-review@openocd.org (ECDSA)
256 SHA256:spYMBqEYoAOtK7yZBrcwE8ZpYt6b68Cfh9yEVetvbXg gerrit-code-review@openocd.org (ED25519)
+--[ED25519 256]--+
|=..              |
|+o..   .         |
|*.o   . .        |
|+B . . .         |
|Bo. = o S        |
|Oo.+ + =         |
|oB=.* = . o      |
| =+=.+   + E     |
|. .=o   . o      |
+----[SHA256]-----+
2048 SHA256:0Onrb7/PHjpo6iVZ7xQX2riKN83FJ3KGU0TvI0TaFG4 gerrit-code-review@openocd.zylin.com (RSA)