diff options
Diffstat (limited to 'arch/arm/mach-omap2/memory.c')
-rw-r--r-- | arch/arm/mach-omap2/memory.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/memory.c b/arch/arm/mach-omap2/memory.c index ab1462b02e6..882c7022429 100644 --- a/arch/arm/mach-omap2/memory.c +++ b/arch/arm/mach-omap2/memory.c | |||
@@ -101,6 +101,17 @@ u32 omap2_reprogram_sdrc(u32 level, u32 force) | |||
101 | return prev; | 101 | return prev; |
102 | } | 102 | } |
103 | 103 | ||
104 | #if !defined(CONFIG_ARCH_OMAP2) | ||
105 | void omap2_sram_ddr_init(u32 *slow_dll_ctrl, u32 fast_dll_ctrl, | ||
106 | u32 base_cs, u32 force_unlock) | ||
107 | { | ||
108 | } | ||
109 | void omap2_sram_reprogram_sdrc(u32 perf_level, u32 dll_val, | ||
110 | u32 mem_type) | ||
111 | { | ||
112 | } | ||
113 | #endif | ||
114 | |||
104 | void omap2_init_memory_params(u32 force_lock_to_unlock_mode) | 115 | void omap2_init_memory_params(u32 force_lock_to_unlock_mode) |
105 | { | 116 | { |
106 | unsigned long dll_cnt; | 117 | unsigned long dll_cnt; |
@@ -165,6 +176,9 @@ void __init omap2_init_memory(void) | |||
165 | { | 176 | { |
166 | u32 l; | 177 | u32 l; |
167 | 178 | ||
179 | if (!cpu_is_omap2420()) | ||
180 | return; | ||
181 | |||
168 | l = sms_read_reg(SMS_SYSCONFIG); | 182 | l = sms_read_reg(SMS_SYSCONFIG); |
169 | l &= ~(0x3 << 3); | 183 | l &= ~(0x3 << 3); |
170 | l |= (0x2 << 3); | 184 | l |= (0x2 << 3); |