SAM3: Remove unused reference to SUPC registers
authorAttila Kinali <attila@kinali.ch>
Tue, 28 Feb 2012 11:39:41 +0000 (12:39 +0100)
committerSpencer Oliver <spen@spen-soft.co.uk>
Tue, 6 Mar 2012 13:31:13 +0000 (13:31 +0000)
The SUPC (Supply Controller) registers are on different base addresses on different
SAM3 chips:
SAM3U: 0x400e1210
SAM3N: 0x400e1410
SAM3S: 0x400e1410

This creates a problem with the sam3_reg_list array which is const, but would need
to be changed at runtime to account for this variability. As this register is not
used anywhere, it's simplest to just remove it.

Change-Id: I987eb371648d826aa6d5e9de18d38c7bb66d6fca
Signed-off-by: Attila Kinali <attila@kinali.ch>
Reviewed-on: http://openocd.zylin.com/495
Tested-by: jenkins
Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
src/flash/nor/at91sam3.c

index fe40e904284c7fcb366289e409bb3f3754b99cfb..50f522f94e41bd178a50e8138fbe5475254e2091 100644 (file)
@@ -131,9 +131,6 @@ struct sam3_cfg {
 #define SAM3_CHIPID_EXID          (0x400E0744)
        uint32_t CHIPID_EXID;
 
-#define SAM3_SUPC_CR              (0x400E1210)
-       uint32_t SUPC_CR;
-
 #define SAM3_PMC_BASE             (0x400E0400)
 #define SAM3_PMC_SCSR             (SAM3_PMC_BASE + 0x0008)
        uint32_t PMC_SCSR;
@@ -2129,7 +2126,6 @@ static const struct sam3_reg_list sam3_all_regs[] = {
        SAM3_ENTRY(PMC_SR, NULL),
        SAM3_ENTRY(CHIPID_CIDR, sam3_explain_chipid_cidr),
        SAM3_ENTRY(CHIPID_EXID, NULL),
-       SAM3_ENTRY(SUPC_CR, NULL),
 
        /* TERMINATE THE LIST */
        { .name = NULL }

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)