common.c (1c213ba16ed8f48fc12dfec8a588d608ffef0904) common.c (ecc46cfdad7499a21296f0757059c4965f1fbc98)
1/*
2 * linux/arch/arm/mach-omap2/common.c
3 *
4 * Code common to all OMAP2+ machines.
5 *
6 * Copyright (C) 2009 Texas Instruments
7 * Copyright (C) 2010 Nokia Corporation
8 * Tony Lindgren <tony@atomide.com>

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

24
25#include "iomap.h"
26#include "common.h"
27#include "sdrc.h"
28#include "control.h"
29
30/* Global address base setup code */
31
1/*
2 * linux/arch/arm/mach-omap2/common.c
3 *
4 * Code common to all OMAP2+ machines.
5 *
6 * Copyright (C) 2009 Texas Instruments
7 * Copyright (C) 2010 Nokia Corporation
8 * Tony Lindgren <tony@atomide.com>

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

24
25#include "iomap.h"
26#include "common.h"
27#include "sdrc.h"
28#include "control.h"
29
30/* Global address base setup code */
31
32#if defined(CONFIG_ARCH_OMAP2) || defined(CONFIG_ARCH_OMAP3)
33
34static void __init __omap2_set_globals(struct omap_globals *omap2_globals)
35{
36 omap2_set_globals_tap(omap2_globals);
37 omap2_set_globals_sdrc(omap2_globals);
38 omap2_set_globals_control(omap2_globals);
39 omap2_set_globals_prcm(omap2_globals);
40}
41
32static void __init __omap2_set_globals(struct omap_globals *omap2_globals)
33{
34 omap2_set_globals_tap(omap2_globals);
35 omap2_set_globals_sdrc(omap2_globals);
36 omap2_set_globals_control(omap2_globals);
37 omap2_set_globals_prcm(omap2_globals);
38}
39
42#endif
43
44#if defined(CONFIG_SOC_OMAP2420)
45
46static struct omap_globals omap242x_globals = {
47 .class = OMAP242X_CLASS,
48 .tap = OMAP2_L4_IO_ADDRESS(0x48014000),
49 .sdrc = OMAP2_L3_IO_ADDRESS(OMAP2420_SDRC_BASE),
50 .sms = OMAP2_L3_IO_ADDRESS(OMAP2420_SMS_BASE),
51 .ctrl = OMAP2_L4_IO_ADDRESS(OMAP242X_CTRL_BASE),

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

168 .prm = OMAP2_L4_IO_ADDRESS(OMAP4430_PRM_BASE),
169 .cm = OMAP2_L4_IO_ADDRESS(OMAP4430_CM_BASE),
170 .cm2 = OMAP2_L4_IO_ADDRESS(OMAP4430_CM2_BASE),
171 .prcm_mpu = OMAP2_L4_IO_ADDRESS(OMAP4430_PRCM_MPU_BASE),
172};
173
174void __init omap2_set_globals_443x(void)
175{
40#if defined(CONFIG_SOC_OMAP2420)
41
42static struct omap_globals omap242x_globals = {
43 .class = OMAP242X_CLASS,
44 .tap = OMAP2_L4_IO_ADDRESS(0x48014000),
45 .sdrc = OMAP2_L3_IO_ADDRESS(OMAP2420_SDRC_BASE),
46 .sms = OMAP2_L3_IO_ADDRESS(OMAP2420_SMS_BASE),
47 .ctrl = OMAP2_L4_IO_ADDRESS(OMAP242X_CTRL_BASE),

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

164 .prm = OMAP2_L4_IO_ADDRESS(OMAP4430_PRM_BASE),
165 .cm = OMAP2_L4_IO_ADDRESS(OMAP4430_CM_BASE),
166 .cm2 = OMAP2_L4_IO_ADDRESS(OMAP4430_CM2_BASE),
167 .prcm_mpu = OMAP2_L4_IO_ADDRESS(OMAP4430_PRCM_MPU_BASE),
168};
169
170void __init omap2_set_globals_443x(void)
171{
176 omap2_set_globals_tap(&omap4_globals);
177 omap2_set_globals_control(&omap4_globals);
178 omap2_set_globals_prcm(&omap4_globals);
172 __omap2_set_globals(&omap4_globals);
179}
180
181void __init omap4_map_io(void)
182{
183 omap44xx_map_common_io();
184}
185#endif
186
173}
174
175void __init omap4_map_io(void)
176{
177 omap44xx_map_common_io();
178}
179#endif
180