19 #include <linux/module.h>
20 #include <linux/kernel.h>
52 #if defined(CONFIG_SOC_OMAP2420) || defined(CONFIG_SOC_OMAP2430)
68 #ifdef CONFIG_SOC_OMAP2420
69 static struct map_desc omap242x_io_desc[] __initdata = {
92 #ifdef CONFIG_SOC_OMAP2430
93 static struct map_desc omap243x_io_desc[] __initdata = {
122 #ifdef CONFIG_ARCH_OMAP3
123 static struct map_desc omap34xx_io_desc[] __initdata = {
166 #if defined(CONFIG_DEBUG_LL) && \
167 (defined(CONFIG_MACH_OMAP_ZOOM2) || defined(CONFIG_MACH_OMAP_ZOOM3))
178 #ifdef CONFIG_SOC_TI81XX
179 static struct map_desc omapti81xx_io_desc[] __initdata = {
189 #ifdef CONFIG_SOC_AM33XX
190 static struct map_desc omapam33xx_io_desc[] __initdata = {
206 #ifdef CONFIG_ARCH_OMAP4
207 static struct map_desc omap44xx_io_desc[] __initdata = {
226 #ifdef CONFIG_OMAP4_ERRATA_I688
228 .virtual = OMAP4_SRAM_VA,
238 #ifdef CONFIG_SOC_OMAP5
239 static struct map_desc omap54xx_io_desc[] __initdata = {
267 #ifdef CONFIG_SOC_OMAP2420
268 void __init omap242x_map_common_io(
void)
275 #ifdef CONFIG_SOC_OMAP2430
276 void __init omap243x_map_common_io(
void)
283 #ifdef CONFIG_ARCH_OMAP3
284 void __init omap34xx_map_common_io(
void)
290 #ifdef CONFIG_SOC_TI81XX
291 void __init omapti81xx_map_common_io(
void)
297 #ifdef CONFIG_SOC_AM33XX
298 void __init omapam33xx_map_common_io(
void)
304 #ifdef CONFIG_ARCH_OMAP4
305 void __init omap44xx_map_common_io(
void)
312 #ifdef CONFIG_SOC_OMAP5
313 void __init omap5_map_common_io(
void)
328 static int __init _omap2_init_reprogram_sdrc(
void)
330 struct clk *dpll3_m2_ck;
338 if (IS_ERR(dpll3_m2_ck))
342 pr_info(
"Reprogramming SDRC clock to %ld Hz\n", rate);
345 pr_err(
"dpll3_m2_clk rate change failed: %d\n", v);
352 static int _set_hwmod_postsetup_state(
struct omap_hwmod *oh,
void *
data)
357 static void __init omap_common_init_early(
void)
362 static void __init omap_hwmod_init_postsetup(
void)
367 #ifdef CONFIG_PM_RUNTIME
377 #ifdef CONFIG_SOC_OMAP2420
382 omap_common_init_early();
387 omap_hwmod_init_postsetup();
393 omap_mux_late_init();
399 #ifdef CONFIG_SOC_OMAP2430
404 omap_common_init_early();
409 omap_hwmod_init_postsetup();
415 omap_mux_late_init();
425 #ifdef CONFIG_ARCH_OMAP3
431 omap_common_init_early();
436 omap_hwmod_init_postsetup();
465 omap_common_init_early();
470 omap_hwmod_init_postsetup();
476 omap_mux_late_init();
483 omap_mux_late_init();
490 omap_mux_late_init();
497 omap_mux_late_init();
504 omap_mux_late_init();
511 omap_mux_late_init();
517 #ifdef CONFIG_SOC_AM33XX
523 omap_common_init_early();
528 omap_hwmod_init_postsetup();
533 #ifdef CONFIG_ARCH_OMAP4
539 omap_common_init_early();
544 omap_hwmod_init_postsetup();
550 omap_mux_late_init();
556 #ifdef CONFIG_SOC_OMAP5
561 omap_common_init_early();
572 _omap2_init_reprogram_sdrc();