diff options
author | Spencer Oliver <spen@spen-soft.co.uk> | 2014-01-20 15:03:24 +0000 |
---|---|---|
committer | Andreas Fritiofson <andreas.fritiofson@gmail.com> | 2014-02-06 22:17:51 +0000 |
commit | 32c4c18045599ddfed36f52b276166ce932b1bf7 (patch) | |
tree | 0588eb0d97558a49f9c5417e954bb237032499b7 /src/flash/nor/at91sam7.c | |
parent | facd0e7827926d0639260be40e9cc4c595794194 (diff) | |
download | riscv-openocd-32c4c18045599ddfed36f52b276166ce932b1bf7.zip riscv-openocd-32c4c18045599ddfed36f52b276166ce932b1bf7.tar.gz riscv-openocd-32c4c18045599ddfed36f52b276166ce932b1bf7.tar.bz2 |
flash: declare fixed arrays const
Change-Id: Id06b8b53ec59a7b3182f60f51dde5b16563aaeef
Signed-off-by: Spencer Oliver <spen@spen-soft.co.uk>
Reviewed-on: http://openocd.zylin.com/1887
Tested-by: jenkins
Diffstat (limited to 'src/flash/nor/at91sam7.c')
-rw-r--r-- | src/flash/nor/at91sam7.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/flash/nor/at91sam7.c b/src/flash/nor/at91sam7.c index 7d0de3a..9cda3f2 100644 --- a/src/flash/nor/at91sam7.c +++ b/src/flash/nor/at91sam7.c @@ -106,11 +106,11 @@ static void at91sam7_set_flash_mode(struct flash_bank *bank, int mode); static uint32_t at91sam7_wait_status_busy(struct flash_bank *bank, uint32_t waitbits, int timeout); static int at91sam7_flash_command(struct flash_bank *bank, uint8_t cmd, uint16_t pagen); -static uint32_t MC_FMR[4] = { 0xFFFFFF60, 0xFFFFFF70, 0xFFFFFF80, 0xFFFFFF90 }; -static uint32_t MC_FCR[4] = { 0xFFFFFF64, 0xFFFFFF74, 0xFFFFFF84, 0xFFFFFF94 }; -static uint32_t MC_FSR[4] = { 0xFFFFFF68, 0xFFFFFF78, 0xFFFFFF88, 0xFFFFFF98 }; +static const uint32_t MC_FMR[4] = { 0xFFFFFF60, 0xFFFFFF70, 0xFFFFFF80, 0xFFFFFF90 }; +static const uint32_t MC_FCR[4] = { 0xFFFFFF64, 0xFFFFFF74, 0xFFFFFF84, 0xFFFFFF94 }; +static const uint32_t MC_FSR[4] = { 0xFFFFFF68, 0xFFFFFF78, 0xFFFFFF88, 0xFFFFFF98 }; -static char *EPROC[8] = { +static const char *EPROC[8] = { "Unknown", "ARM946-E", "ARM7TDMI", "Unknown", "ARM920T", "ARM926EJ-S", "Unknown", "Unknown" }; |