blob: 102c9f71a3c11bfc76c29ca4025c7d0057294354 [file] [log] [blame]
Tony Lindgren92105bb2005-09-07 17:20:26 +01001/*
2 * linux/arch/arm/plat-omap/sram.c
3 *
4 * OMAP SRAM detection and management
5 *
6 * Copyright (C) 2005 Nokia Corporation
7 * Written by Tony Lindgren <tony@atomide.com>
8 *
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License version 2 as
11 * published by the Free Software Foundation.
12 */
Tony Lindgrenc2d43e32008-07-03 12:24:38 +030013#undef DEBUG
Tony Lindgren92105bb2005-09-07 17:20:26 +010014
Tony Lindgren92105bb2005-09-07 17:20:26 +010015#include <linux/module.h>
16#include <linux/kernel.h>
17#include <linux/init.h>
Russell Kingfced80c2008-09-06 12:10:45 +010018#include <linux/io.h>
Tony Lindgren92105bb2005-09-07 17:20:26 +010019
Tony Lindgren53d9cc72006-02-08 22:06:45 +000020#include <asm/tlb.h>
Tony Lindgren92105bb2005-09-07 17:20:26 +010021#include <asm/cacheflush.h>
22
Tony Lindgren670c1042006-04-02 17:46:25 +010023#include <asm/mach/map.h>
24
Russell Kinga09e64f2008-08-05 16:14:15 +010025#include <mach/sram.h>
26#include <mach/board.h>
Lauri Leukkunen84a34342008-12-10 17:36:31 -080027#include <mach/cpu.h>
Tony Lindgren92105bb2005-09-07 17:20:26 +010028
Russell Kinga09e64f2008-08-05 16:14:15 +010029#include <mach/control.h>
Tony Lindgrenc2d43e32008-07-03 12:24:38 +030030
31#if defined(CONFIG_ARCH_OMAP2) || defined(CONFIG_ARCH_OMAP3)
32# include "../mach-omap2/prm.h"
33# include "../mach-omap2/cm.h"
34# include "../mach-omap2/sdrc.h"
35#endif
36
Tony Lindgren1a8bfa12005-11-10 14:26:50 +000037#define OMAP1_SRAM_PA 0x20000000
Tony Lindgrenc2d43e32008-07-03 12:24:38 +030038#define OMAP1_SRAM_VA VMALLOC_END
Tony Lindgren1a8bfa12005-11-10 14:26:50 +000039#define OMAP2_SRAM_PA 0x40200000
Tony Lindgren670c1042006-04-02 17:46:25 +010040#define OMAP2_SRAM_PUB_PA 0x4020f800
Mans Rullgarde85c2052009-05-25 11:08:41 -070041#define OMAP2_SRAM_VA 0xe3000000
42#define OMAP2_SRAM_PUB_VA (OMAP2_SRAM_VA + 0x800)
Tony Lindgrenc2d43e32008-07-03 12:24:38 +030043#define OMAP3_SRAM_PA 0x40200000
44#define OMAP3_SRAM_VA 0xd7000000
45#define OMAP3_SRAM_PUB_PA 0x40208000
46#define OMAP3_SRAM_PUB_VA 0xd7008000
Tony Lindgren1a8bfa12005-11-10 14:26:50 +000047
Tony Lindgrenc2d43e32008-07-03 12:24:38 +030048#if defined(CONFIG_ARCH_OMAP24XX) || defined(CONFIG_ARCH_OMAP34XX)
Tony Lindgren670c1042006-04-02 17:46:25 +010049#define SRAM_BOOTLOADER_SZ 0x00
50#else
Tony Lindgren92105bb2005-09-07 17:20:26 +010051#define SRAM_BOOTLOADER_SZ 0x80
Tony Lindgren670c1042006-04-02 17:46:25 +010052#endif
53
Tony Lindgrenc2d43e32008-07-03 12:24:38 +030054#define OMAP24XX_VA_REQINFOPERM0 IO_ADDRESS(0x68005048)
55#define OMAP24XX_VA_READPERM0 IO_ADDRESS(0x68005050)
56#define OMAP24XX_VA_WRITEPERM0 IO_ADDRESS(0x68005058)
57
58#define OMAP34XX_VA_REQINFOPERM0 IO_ADDRESS(0x68012848)
59#define OMAP34XX_VA_READPERM0 IO_ADDRESS(0x68012850)
60#define OMAP34XX_VA_WRITEPERM0 IO_ADDRESS(0x68012858)
61#define OMAP34XX_VA_ADDR_MATCH2 IO_ADDRESS(0x68012880)
62#define OMAP34XX_VA_SMS_RG_ATT0 IO_ADDRESS(0x6C000048)
63#define OMAP34XX_VA_CONTROL_STAT IO_ADDRESS(0x480022F0)
64
Tony Lindgren670c1042006-04-02 17:46:25 +010065#define GP_DEVICE 0x300
Tony Lindgren670c1042006-04-02 17:46:25 +010066
67#define ROUND_DOWN(value,boundary) ((value) & (~((boundary)-1)))
Tony Lindgren92105bb2005-09-07 17:20:26 +010068
Tony Lindgrenc40fae952006-12-07 13:58:10 -080069static unsigned long omap_sram_start;
Tony Lindgren92105bb2005-09-07 17:20:26 +010070static unsigned long omap_sram_base;
71static unsigned long omap_sram_size;
72static unsigned long omap_sram_ceil;
73
Imre Deakb7cc6d42007-03-06 03:16:36 -080074extern unsigned long omapfb_reserve_sram(unsigned long sram_pstart,
75 unsigned long sram_vstart,
76 unsigned long sram_size,
77 unsigned long pstart_avail,
78 unsigned long size_avail);
Tony Lindgren670c1042006-04-02 17:46:25 +010079
Imre Deakb7cc6d42007-03-06 03:16:36 -080080/*
81 * Depending on the target RAMFS firewall setup, the public usable amount of
Simon Arlott6cbdc8c2007-05-11 20:40:30 +010082 * SRAM varies. The default accessible size for all device types is 2k. A GP
83 * device allows ARM11 but not other initiators for full size. This
Tony Lindgren670c1042006-04-02 17:46:25 +010084 * functionality seems ok until some nice security API happens.
85 */
86static int is_sram_locked(void)
87{
88 int type = 0;
89
90 if (cpu_is_omap242x())
Lauri Leukkunen84a34342008-12-10 17:36:31 -080091 type = omap_rev() & OMAP2_DEVICETYPE_MASK;
Tony Lindgren670c1042006-04-02 17:46:25 +010092
93 if (type == GP_DEVICE) {
Simon Arlott6cbdc8c2007-05-11 20:40:30 +010094 /* RAMFW: R/W access to all initiators for all qualifier sets */
Tony Lindgren670c1042006-04-02 17:46:25 +010095 if (cpu_is_omap242x()) {
Tony Lindgrenc2d43e32008-07-03 12:24:38 +030096 __raw_writel(0xFF, OMAP24XX_VA_REQINFOPERM0); /* all q-vects */
97 __raw_writel(0xCFDE, OMAP24XX_VA_READPERM0); /* all i-read */
98 __raw_writel(0xCFDE, OMAP24XX_VA_WRITEPERM0); /* all i-write */
99 }
100 if (cpu_is_omap34xx()) {
101 __raw_writel(0xFFFF, OMAP34XX_VA_REQINFOPERM0); /* all q-vects */
102 __raw_writel(0xFFFF, OMAP34XX_VA_READPERM0); /* all i-read */
103 __raw_writel(0xFFFF, OMAP34XX_VA_WRITEPERM0); /* all i-write */
104 __raw_writel(0x0, OMAP34XX_VA_ADDR_MATCH2);
105 __raw_writel(0xFFFFFFFF, OMAP34XX_VA_SMS_RG_ATT0);
Tony Lindgren670c1042006-04-02 17:46:25 +0100106 }
107 return 0;
108 } else
109 return 1; /* assume locked with no PPA or security driver */
110}
111
Tony Lindgren92105bb2005-09-07 17:20:26 +0100112/*
Tony Lindgren1a8bfa12005-11-10 14:26:50 +0000113 * The amount of SRAM depends on the core type.
Tony Lindgren92105bb2005-09-07 17:20:26 +0100114 * Note that we cannot try to test for SRAM here because writes
115 * to secure SRAM will hang the system. Also the SRAM is not
116 * yet mapped at this point.
117 */
118void __init omap_detect_sram(void)
119{
Imre Deakb7cc6d42007-03-06 03:16:36 -0800120 unsigned long reserved;
Tony Lindgren670c1042006-04-02 17:46:25 +0100121
Tony Lindgrenc2d43e32008-07-03 12:24:38 +0300122 if (cpu_class_is_omap2()) {
Tony Lindgren670c1042006-04-02 17:46:25 +0100123 if (is_sram_locked()) {
Tony Lindgrenc2d43e32008-07-03 12:24:38 +0300124 if (cpu_is_omap34xx()) {
125 omap_sram_base = OMAP3_SRAM_PUB_VA;
126 omap_sram_start = OMAP3_SRAM_PUB_PA;
127 omap_sram_size = 0x8000; /* 32K */
128 } else {
129 omap_sram_base = OMAP2_SRAM_PUB_VA;
130 omap_sram_start = OMAP2_SRAM_PUB_PA;
131 omap_sram_size = 0x800; /* 2K */
132 }
Tony Lindgren670c1042006-04-02 17:46:25 +0100133 } else {
Tony Lindgrenc2d43e32008-07-03 12:24:38 +0300134 if (cpu_is_omap34xx()) {
135 omap_sram_base = OMAP3_SRAM_VA;
136 omap_sram_start = OMAP3_SRAM_PA;
Tony Lindgren670c1042006-04-02 17:46:25 +0100137 omap_sram_size = 0x10000; /* 64K */
Tony Lindgrenc2d43e32008-07-03 12:24:38 +0300138 } else {
139 omap_sram_base = OMAP2_SRAM_VA;
140 omap_sram_start = OMAP2_SRAM_PA;
141 if (cpu_is_omap242x())
142 omap_sram_size = 0xa0000; /* 640K */
143 else if (cpu_is_omap243x())
144 omap_sram_size = 0x10000; /* 64K */
145 }
Tony Lindgren670c1042006-04-02 17:46:25 +0100146 }
147 } else {
Tony Lindgren1a8bfa12005-11-10 14:26:50 +0000148 omap_sram_base = OMAP1_SRAM_VA;
Tony Lindgrenc40fae952006-12-07 13:58:10 -0800149 omap_sram_start = OMAP1_SRAM_PA;
Tony Lindgren92105bb2005-09-07 17:20:26 +0100150
Zebediah C. McClure557096f2009-03-23 18:07:44 -0700151 if (cpu_is_omap7xx())
Tony Lindgren670c1042006-04-02 17:46:25 +0100152 omap_sram_size = 0x32000; /* 200K */
153 else if (cpu_is_omap15xx())
154 omap_sram_size = 0x30000; /* 192K */
155 else if (cpu_is_omap1610() || cpu_is_omap1621() ||
156 cpu_is_omap1710())
157 omap_sram_size = 0x4000; /* 16K */
158 else if (cpu_is_omap1611())
159 omap_sram_size = 0x3e800; /* 250K */
160 else {
161 printk(KERN_ERR "Could not detect SRAM size\n");
162 omap_sram_size = 0x4000;
163 }
Tony Lindgren92105bb2005-09-07 17:20:26 +0100164 }
Imre Deakb7cc6d42007-03-06 03:16:36 -0800165 reserved = omapfb_reserve_sram(omap_sram_start, omap_sram_base,
166 omap_sram_size,
167 omap_sram_start + SRAM_BOOTLOADER_SZ,
168 omap_sram_size - SRAM_BOOTLOADER_SZ);
169 omap_sram_size -= reserved;
Tony Lindgren92105bb2005-09-07 17:20:26 +0100170 omap_sram_ceil = omap_sram_base + omap_sram_size;
171}
172
173static struct map_desc omap_sram_io_desc[] __initdata = {
Deepak Saxena9fe133b2005-10-28 15:19:00 +0100174 { /* .length gets filled in at runtime */
Tony Lindgren1a8bfa12005-11-10 14:26:50 +0000175 .virtual = OMAP1_SRAM_VA,
176 .pfn = __phys_to_pfn(OMAP1_SRAM_PA),
Tony Lindgrence2deca2006-06-26 16:16:24 -0700177 .type = MT_MEMORY
Deepak Saxena9fe133b2005-10-28 15:19:00 +0100178 }
Tony Lindgren92105bb2005-09-07 17:20:26 +0100179};
180
181/*
Tony Lindgrence2deca2006-06-26 16:16:24 -0700182 * Note that we cannot use ioremap for SRAM, as clock init needs SRAM early.
Tony Lindgren92105bb2005-09-07 17:20:26 +0100183 */
184void __init omap_map_sram(void)
185{
Tony Lindgren670c1042006-04-02 17:46:25 +0100186 unsigned long base;
187
Tony Lindgren92105bb2005-09-07 17:20:26 +0100188 if (omap_sram_size == 0)
189 return;
190
Tony Lindgren1a8bfa12005-11-10 14:26:50 +0000191 if (cpu_is_omap24xx()) {
192 omap_sram_io_desc[0].virtual = OMAP2_SRAM_VA;
Tony Lindgren670c1042006-04-02 17:46:25 +0100193
Kevin Hilmand1284b52006-09-25 12:41:24 +0300194 base = OMAP2_SRAM_PA;
Tony Lindgren670c1042006-04-02 17:46:25 +0100195 base = ROUND_DOWN(base, PAGE_SIZE);
196 omap_sram_io_desc[0].pfn = __phys_to_pfn(base);
Tony Lindgren1a8bfa12005-11-10 14:26:50 +0000197 }
198
Tony Lindgrenc2d43e32008-07-03 12:24:38 +0300199 if (cpu_is_omap34xx()) {
200 omap_sram_io_desc[0].virtual = OMAP3_SRAM_VA;
201 base = OMAP3_SRAM_PA;
202 base = ROUND_DOWN(base, PAGE_SIZE);
203 omap_sram_io_desc[0].pfn = __phys_to_pfn(base);
204 }
205
Tony Lindgrence2deca2006-06-26 16:16:24 -0700206 omap_sram_io_desc[0].length = 1024 * 1024; /* Use section desc */
Tony Lindgren92105bb2005-09-07 17:20:26 +0100207 iotable_init(omap_sram_io_desc, ARRAY_SIZE(omap_sram_io_desc));
208
Tony Lindgren1a8bfa12005-11-10 14:26:50 +0000209 printk(KERN_INFO "SRAM: Mapped pa 0x%08lx to va 0x%08lx size: 0x%lx\n",
Tony Lindgren670c1042006-04-02 17:46:25 +0100210 __pfn_to_phys(omap_sram_io_desc[0].pfn),
211 omap_sram_io_desc[0].virtual,
Tony Lindgren1a8bfa12005-11-10 14:26:50 +0000212 omap_sram_io_desc[0].length);
213
Tony Lindgren92105bb2005-09-07 17:20:26 +0100214 /*
Tony Lindgren53d9cc72006-02-08 22:06:45 +0000215 * Normally devicemaps_init() would flush caches and tlb after
216 * mdesc->map_io(), but since we're called from map_io(), we
217 * must do it here.
218 */
219 local_flush_tlb_all();
220 flush_cache_all();
221
222 /*
Tony Lindgren92105bb2005-09-07 17:20:26 +0100223 * Looks like we need to preserve some bootloader code at the
224 * beginning of SRAM for jumping to flash for reboot to work...
225 */
226 memset((void *)omap_sram_base + SRAM_BOOTLOADER_SZ, 0,
227 omap_sram_size - SRAM_BOOTLOADER_SZ);
228}
229
Tony Lindgren92105bb2005-09-07 17:20:26 +0100230void * omap_sram_push(void * start, unsigned long size)
231{
232 if (size > (omap_sram_ceil - (omap_sram_base + SRAM_BOOTLOADER_SZ))) {
233 printk(KERN_ERR "Not enough space in SRAM\n");
234 return NULL;
235 }
Tony Lindgren670c1042006-04-02 17:46:25 +0100236
Tony Lindgren92105bb2005-09-07 17:20:26 +0100237 omap_sram_ceil -= size;
Tony Lindgren670c1042006-04-02 17:46:25 +0100238 omap_sram_ceil = ROUND_DOWN(omap_sram_ceil, sizeof(void *));
Tony Lindgren92105bb2005-09-07 17:20:26 +0100239 memcpy((void *)omap_sram_ceil, start, size);
Tony Lindgrenc2d43e32008-07-03 12:24:38 +0300240 flush_icache_range((unsigned long)start, (unsigned long)(start + size));
Tony Lindgren92105bb2005-09-07 17:20:26 +0100241
242 return (void *)omap_sram_ceil;
243}
244
Tony Lindgren1a8bfa12005-11-10 14:26:50 +0000245#ifdef CONFIG_ARCH_OMAP1
246
247static void (*_omap_sram_reprogram_clock)(u32 dpllctl, u32 ckctl);
248
249void omap_sram_reprogram_clock(u32 dpllctl, u32 ckctl)
250{
Santosh Shilimkaraf5703f2009-05-25 11:08:37 -0700251 BUG_ON(!_omap_sram_reprogram_clock);
Russell King020f9702008-12-01 17:40:54 +0000252 _omap_sram_reprogram_clock(dpllctl, ckctl);
Tony Lindgren1a8bfa12005-11-10 14:26:50 +0000253}
254
255int __init omap1_sram_init(void)
256{
Tony Lindgrenc2d43e32008-07-03 12:24:38 +0300257 _omap_sram_reprogram_clock =
258 omap_sram_push(omap1_sram_reprogram_clock,
259 omap1_sram_reprogram_clock_sz);
Tony Lindgren1a8bfa12005-11-10 14:26:50 +0000260
261 return 0;
262}
263
264#else
265#define omap1_sram_init() do {} while (0)
266#endif
267
Syed Mohammed, Khasimcc26b3b2008-10-09 17:51:41 +0300268#if defined(CONFIG_ARCH_OMAP2)
Tony Lindgren1a8bfa12005-11-10 14:26:50 +0000269
270static void (*_omap2_sram_ddr_init)(u32 *slow_dll_ctrl, u32 fast_dll_ctrl,
271 u32 base_cs, u32 force_unlock);
272
273void omap2_sram_ddr_init(u32 *slow_dll_ctrl, u32 fast_dll_ctrl,
274 u32 base_cs, u32 force_unlock)
275{
Santosh Shilimkaraf5703f2009-05-25 11:08:37 -0700276 BUG_ON(!_omap2_sram_ddr_init);
Russell King020f9702008-12-01 17:40:54 +0000277 _omap2_sram_ddr_init(slow_dll_ctrl, fast_dll_ctrl,
278 base_cs, force_unlock);
Tony Lindgren1a8bfa12005-11-10 14:26:50 +0000279}
280
281static void (*_omap2_sram_reprogram_sdrc)(u32 perf_level, u32 dll_val,
282 u32 mem_type);
283
284void omap2_sram_reprogram_sdrc(u32 perf_level, u32 dll_val, u32 mem_type)
285{
Santosh Shilimkaraf5703f2009-05-25 11:08:37 -0700286 BUG_ON(!_omap2_sram_reprogram_sdrc);
Russell King020f9702008-12-01 17:40:54 +0000287 _omap2_sram_reprogram_sdrc(perf_level, dll_val, mem_type);
Tony Lindgren1a8bfa12005-11-10 14:26:50 +0000288}
289
290static u32 (*_omap2_set_prcm)(u32 dpll_ctrl_val, u32 sdrc_rfr_val, int bypass);
291
292u32 omap2_set_prcm(u32 dpll_ctrl_val, u32 sdrc_rfr_val, int bypass)
293{
Santosh Shilimkaraf5703f2009-05-25 11:08:37 -0700294 BUG_ON(!_omap2_set_prcm);
Tony Lindgren1a8bfa12005-11-10 14:26:50 +0000295 return _omap2_set_prcm(dpll_ctrl_val, sdrc_rfr_val, bypass);
296}
Tony Lindgrenc2d43e32008-07-03 12:24:38 +0300297#endif
Tony Lindgren1a8bfa12005-11-10 14:26:50 +0000298
Tony Lindgrenc2d43e32008-07-03 12:24:38 +0300299#ifdef CONFIG_ARCH_OMAP2420
300int __init omap242x_sram_init(void)
Tony Lindgren1a8bfa12005-11-10 14:26:50 +0000301{
Tony Lindgrenc2d43e32008-07-03 12:24:38 +0300302 _omap2_sram_ddr_init = omap_sram_push(omap242x_sram_ddr_init,
303 omap242x_sram_ddr_init_sz);
Tony Lindgren1a8bfa12005-11-10 14:26:50 +0000304
Tony Lindgrenc2d43e32008-07-03 12:24:38 +0300305 _omap2_sram_reprogram_sdrc = omap_sram_push(omap242x_sram_reprogram_sdrc,
306 omap242x_sram_reprogram_sdrc_sz);
307
308 _omap2_set_prcm = omap_sram_push(omap242x_sram_set_prcm,
309 omap242x_sram_set_prcm_sz);
Tony Lindgren1a8bfa12005-11-10 14:26:50 +0000310
311 return 0;
312}
313#else
Tony Lindgrenc2d43e32008-07-03 12:24:38 +0300314static inline int omap242x_sram_init(void)
315{
316 return 0;
317}
318#endif
319
320#ifdef CONFIG_ARCH_OMAP2430
321int __init omap243x_sram_init(void)
322{
323 _omap2_sram_ddr_init = omap_sram_push(omap243x_sram_ddr_init,
324 omap243x_sram_ddr_init_sz);
325
326 _omap2_sram_reprogram_sdrc = omap_sram_push(omap243x_sram_reprogram_sdrc,
327 omap243x_sram_reprogram_sdrc_sz);
328
329 _omap2_set_prcm = omap_sram_push(omap243x_sram_set_prcm,
330 omap243x_sram_set_prcm_sz);
331
332 return 0;
333}
334#else
335static inline int omap243x_sram_init(void)
336{
337 return 0;
338}
339#endif
340
341#ifdef CONFIG_ARCH_OMAP3
342
Syed Mohammed, Khasimcc26b3b2008-10-09 17:51:41 +0300343static u32 (*_omap3_sram_configure_core_dpll)(u32 sdrc_rfr_ctrl,
344 u32 sdrc_actim_ctrla,
345 u32 sdrc_actim_ctrlb,
346 u32 m2);
347u32 omap3_configure_core_dpll(u32 sdrc_rfr_ctrl, u32 sdrc_actim_ctrla,
348 u32 sdrc_actim_ctrlb, u32 m2)
Tony Lindgrenc2d43e32008-07-03 12:24:38 +0300349{
Santosh Shilimkaraf5703f2009-05-25 11:08:37 -0700350 BUG_ON(!_omap3_sram_configure_core_dpll);
Syed Mohammed, Khasimcc26b3b2008-10-09 17:51:41 +0300351 return _omap3_sram_configure_core_dpll(sdrc_rfr_ctrl,
352 sdrc_actim_ctrla,
353 sdrc_actim_ctrlb, m2);
Tony Lindgrenc2d43e32008-07-03 12:24:38 +0300354}
355
356/* REVISIT: Should this be same as omap34xx_sram_init() after off-idle? */
357void restore_sram_functions(void)
358{
359 omap_sram_ceil = omap_sram_base + omap_sram_size;
360
Syed Mohammed, Khasimcc26b3b2008-10-09 17:51:41 +0300361 _omap3_sram_configure_core_dpll =
362 omap_sram_push(omap3_sram_configure_core_dpll,
363 omap3_sram_configure_core_dpll_sz);
Tony Lindgrenc2d43e32008-07-03 12:24:38 +0300364}
365
366int __init omap34xx_sram_init(void)
367{
Syed Mohammed, Khasimcc26b3b2008-10-09 17:51:41 +0300368 _omap3_sram_configure_core_dpll =
369 omap_sram_push(omap3_sram_configure_core_dpll,
370 omap3_sram_configure_core_dpll_sz);
Tony Lindgrenc2d43e32008-07-03 12:24:38 +0300371
372 return 0;
373}
374#else
375static inline int omap34xx_sram_init(void)
376{
377 return 0;
378}
Tony Lindgren1a8bfa12005-11-10 14:26:50 +0000379#endif
380
381int __init omap_sram_init(void)
Tony Lindgren92105bb2005-09-07 17:20:26 +0100382{
383 omap_detect_sram();
384 omap_map_sram();
Tony Lindgren1a8bfa12005-11-10 14:26:50 +0000385
Tony Lindgrenc2d43e32008-07-03 12:24:38 +0300386 if (!(cpu_class_is_omap2()))
Tony Lindgren1a8bfa12005-11-10 14:26:50 +0000387 omap1_sram_init();
Tony Lindgrenc2d43e32008-07-03 12:24:38 +0300388 else if (cpu_is_omap242x())
389 omap242x_sram_init();
390 else if (cpu_is_omap2430())
391 omap243x_sram_init();
392 else if (cpu_is_omap34xx())
393 omap34xx_sram_init();
Tony Lindgren1a8bfa12005-11-10 14:26:50 +0000394
395 return 0;
Tony Lindgren92105bb2005-09-07 17:20:26 +0100396}