io.c (a3ec4a603faf4244e275bf11b467aad092dfbd8a) io.c (01001712c96f82e6317b1e09729d8fc4bcc66957)
1/*
2 * linux/arch/arm/mach-omap2/io.c
3 *
4 * OMAP2 I/O mapping code
5 *
6 * Copyright (C) 2005 Nokia Corporation
7 * Copyright (C) 2007-2009 Texas Instruments
8 *

--- 161 unchanged lines hidden (view full) ---

170 .virtual = ZOOM_UART_VIRT,
171 .pfn = __phys_to_pfn(ZOOM_UART_BASE),
172 .length = SZ_1M,
173 .type = MT_DEVICE
174 },
175#endif
176};
177#endif
1/*
2 * linux/arch/arm/mach-omap2/io.c
3 *
4 * OMAP2 I/O mapping code
5 *
6 * Copyright (C) 2005 Nokia Corporation
7 * Copyright (C) 2007-2009 Texas Instruments
8 *

--- 161 unchanged lines hidden (view full) ---

170 .virtual = ZOOM_UART_VIRT,
171 .pfn = __phys_to_pfn(ZOOM_UART_BASE),
172 .length = SZ_1M,
173 .type = MT_DEVICE
174 },
175#endif
176};
177#endif
178
179#ifdef CONFIG_SOC_OMAPTI816X
180static struct map_desc omapti816x_io_desc[] __initdata = {
181 {
182 .virtual = L4_34XX_VIRT,
183 .pfn = __phys_to_pfn(L4_34XX_PHYS),
184 .length = L4_34XX_SIZE,
185 .type = MT_DEVICE
186 },
187};
188#endif
189
178#ifdef CONFIG_ARCH_OMAP4
179static struct map_desc omap44xx_io_desc[] __initdata = {
180 {
181 .virtual = L3_44XX_VIRT,
182 .pfn = __phys_to_pfn(L3_44XX_PHYS),
183 .length = L3_44XX_SIZE,
184 .type = MT_DEVICE,
185 },

--- 76 unchanged lines hidden (view full) ---

262#ifdef CONFIG_ARCH_OMAP3
263void __init omap34xx_map_common_io(void)
264{
265 iotable_init(omap34xx_io_desc, ARRAY_SIZE(omap34xx_io_desc));
266 _omap2_map_common_io();
267}
268#endif
269
190#ifdef CONFIG_ARCH_OMAP4
191static struct map_desc omap44xx_io_desc[] __initdata = {
192 {
193 .virtual = L3_44XX_VIRT,
194 .pfn = __phys_to_pfn(L3_44XX_PHYS),
195 .length = L3_44XX_SIZE,
196 .type = MT_DEVICE,
197 },

--- 76 unchanged lines hidden (view full) ---

274#ifdef CONFIG_ARCH_OMAP3
275void __init omap34xx_map_common_io(void)
276{
277 iotable_init(omap34xx_io_desc, ARRAY_SIZE(omap34xx_io_desc));
278 _omap2_map_common_io();
279}
280#endif
281
282#ifdef CONFIG_SOC_OMAPTI816X
283void __init omapti816x_map_common_io(void)
284{
285 iotable_init(omapti816x_io_desc, ARRAY_SIZE(omapti816x_io_desc));
286 _omap2_map_common_io();
287}
288#endif
289
270#ifdef CONFIG_ARCH_OMAP4
271void __init omap44xx_map_common_io(void)
272{
273 iotable_init(omap44xx_io_desc, ARRAY_SIZE(omap44xx_io_desc));
274 _omap2_map_common_io();
275}
276#endif
277

--- 115 unchanged lines hidden (view full) ---

393 omap4xxx_clk_init();
394 else
395 pr_err("Could not init clock framework - unknown SoC\n");
396}
397
398void __init omap2_init_common_devices(struct omap_sdrc_params *sdrc_cs0,
399 struct omap_sdrc_params *sdrc_cs1)
400{
290#ifdef CONFIG_ARCH_OMAP4
291void __init omap44xx_map_common_io(void)
292{
293 iotable_init(omap44xx_io_desc, ARRAY_SIZE(omap44xx_io_desc));
294 _omap2_map_common_io();
295}
296#endif
297

--- 115 unchanged lines hidden (view full) ---

413 omap4xxx_clk_init();
414 else
415 pr_err("Could not init clock framework - unknown SoC\n");
416}
417
418void __init omap2_init_common_devices(struct omap_sdrc_params *sdrc_cs0,
419 struct omap_sdrc_params *sdrc_cs1)
420{
401 omap_serial_early_init();
402
403 omap_hwmod_late_init();
404
405 if (cpu_is_omap24xx() || cpu_is_omap34xx()) {
421 if (cpu_is_omap24xx() || omap3_has_sdrc()) {
406 omap2_sdrc_init(sdrc_cs0, sdrc_cs1);
407 _omap2_init_reprogram_sdrc();
408 }
409 gpmc_init();
410
411 omap_irq_base_init();
412}
413

--- 39 unchanged lines hidden ---
422 omap2_sdrc_init(sdrc_cs0, sdrc_cs1);
423 _omap2_init_reprogram_sdrc();
424 }
425 gpmc_init();
426
427 omap_irq_base_init();
428}
429

--- 39 unchanged lines hidden ---