diff options
Diffstat (limited to 'arch/arm/mach-at91/board-eco920.c')
-rw-r--r-- | arch/arm/mach-at91/board-eco920.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/arm/mach-at91/board-eco920.c b/arch/arm/mach-at91/board-eco920.c index 07ef35b0ec2c..f23aabef8551 100644 --- a/arch/arm/mach-at91/board-eco920.c +++ b/arch/arm/mach-at91/board-eco920.c | |||
@@ -26,6 +26,7 @@ | |||
26 | 26 | ||
27 | #include <mach/board.h> | 27 | #include <mach/board.h> |
28 | #include <mach/at91rm9200_mc.h> | 28 | #include <mach/at91rm9200_mc.h> |
29 | #include <mach/at91_ramc.h> | ||
29 | #include <mach/cpu.h> | 30 | #include <mach/cpu.h> |
30 | 31 | ||
31 | #include "generic.h" | 32 | #include "generic.h" |
@@ -110,7 +111,7 @@ static void __init eco920_board_init(void) | |||
110 | at91_add_device_mmc(0, &eco920_mmc_data); | 111 | at91_add_device_mmc(0, &eco920_mmc_data); |
111 | platform_device_register(&eco920_flash); | 112 | platform_device_register(&eco920_flash); |
112 | 113 | ||
113 | at91_sys_write(AT91_SMC_CSR(7), AT91_SMC_RWHOLD_(1) | 114 | at91_ramc_write(0, AT91_SMC_CSR(7), AT91_SMC_RWHOLD_(1) |
114 | | AT91_SMC_RWSETUP_(1) | 115 | | AT91_SMC_RWSETUP_(1) |
115 | | AT91_SMC_DBW_8 | 116 | | AT91_SMC_DBW_8 |
116 | | AT91_SMC_WSEN | 117 | | AT91_SMC_WSEN |
@@ -122,7 +123,7 @@ static void __init eco920_board_init(void) | |||
122 | at91_set_deglitch(AT91_PIN_PA23, 1); | 123 | at91_set_deglitch(AT91_PIN_PA23, 1); |
123 | 124 | ||
124 | /* Initialization of the Static Memory Controller for Chip Select 3 */ | 125 | /* Initialization of the Static Memory Controller for Chip Select 3 */ |
125 | at91_sys_write(AT91_SMC_CSR(3), | 126 | at91_ramc_write(0, AT91_SMC_CSR(3), |
126 | AT91_SMC_DBW_16 | /* 16 bit */ | 127 | AT91_SMC_DBW_16 | /* 16 bit */ |
127 | AT91_SMC_WSEN | | 128 | AT91_SMC_WSEN | |
128 | AT91_SMC_NWS_(5) | /* wait states */ | 129 | AT91_SMC_NWS_(5) | /* wait states */ |