diff options
author | Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | 2012-02-12 23:58:53 -0500 |
---|---|---|
committer | Nicolas Ferre <nicolas.ferre@atmel.com> | 2012-02-23 08:57:56 -0500 |
commit | f363c407b42c467d06675c852e55f26adb959915 (patch) | |
tree | 695ffaf47ee7db5adfa9dd23976b5df77bd738c5 /arch/arm/mach-at91/at91sam9_alt_reset.S | |
parent | 1a269ade22bb65d0afc0d20e0a19602453fae04a (diff) |
ARM: at91: make sdram/ddr register base soc independent
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Diffstat (limited to 'arch/arm/mach-at91/at91sam9_alt_reset.S')
-rw-r--r-- | arch/arm/mach-at91/at91sam9_alt_reset.S | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/arch/arm/mach-at91/at91sam9_alt_reset.S b/arch/arm/mach-at91/at91sam9_alt_reset.S index 518e42377171..7af2e108b8a0 100644 --- a/arch/arm/mach-at91/at91sam9_alt_reset.S +++ b/arch/arm/mach-at91/at91sam9_alt_reset.S | |||
@@ -15,16 +15,17 @@ | |||
15 | 15 | ||
16 | #include <linux/linkage.h> | 16 | #include <linux/linkage.h> |
17 | #include <mach/hardware.h> | 17 | #include <mach/hardware.h> |
18 | #include <mach/at91sam9_sdramc.h> | 18 | #include <mach/at91_ramc.h> |
19 | #include <mach/at91_rstc.h> | 19 | #include <mach/at91_rstc.h> |
20 | 20 | ||
21 | .arm | 21 | .arm |
22 | 22 | ||
23 | .globl at91sam9_alt_restart | 23 | .globl at91sam9_alt_restart |
24 | 24 | ||
25 | at91sam9_alt_restart: ldr r0, .at91_va_base_sdramc @ preload constants | 25 | at91sam9_alt_restart: ldr r0, =at91_ramc_base @ preload constants |
26 | ldr r1, =at91_rstc_base | 26 | ldr r0, [r0] |
27 | ldr r1, [r1] | 27 | ldr r4, =at91_rstc_base |
28 | ldr r1, [r4] | ||
28 | 29 | ||
29 | mov r2, #1 | 30 | mov r2, #1 |
30 | mov r3, #AT91_SDRAMC_LPCB_POWER_DOWN | 31 | mov r3, #AT91_SDRAMC_LPCB_POWER_DOWN |
@@ -37,6 +38,3 @@ at91sam9_alt_restart: ldr r0, .at91_va_base_sdramc @ preload constants | |||
37 | str r4, [r1, #AT91_RSTC_CR] @ reset processor | 38 | str r4, [r1, #AT91_RSTC_CR] @ reset processor |
38 | 39 | ||
39 | b . | 40 | b . |
40 | |||
41 | .at91_va_base_sdramc: | ||
42 | .word AT91_VA_BASE_SYS + AT91_SDRAMC0 | ||