diff options
Diffstat (limited to 'arch/arm/mach-omap1/devices.c')
-rw-r--r-- | arch/arm/mach-omap1/devices.c | 72 |
1 files changed, 0 insertions, 72 deletions
diff --git a/arch/arm/mach-omap1/devices.c b/arch/arm/mach-omap1/devices.c index 379100c17639..aa0725608fb1 100644 --- a/arch/arm/mach-omap1/devices.c +++ b/arch/arm/mach-omap1/devices.c | |||
@@ -63,44 +63,7 @@ static void omap_init_rtc(void) | |||
63 | static inline void omap_init_rtc(void) {} | 63 | static inline void omap_init_rtc(void) {} |
64 | #endif | 64 | #endif |
65 | 65 | ||
66 | #if defined(CONFIG_OMAP_DSP) || defined(CONFIG_OMAP_DSP_MODULE) | ||
67 | |||
68 | #if defined(CONFIG_ARCH_OMAP15XX) | ||
69 | # define OMAP1_MBOX_SIZE 0x23 | ||
70 | # define INT_DSP_MAILBOX1 INT_1510_DSP_MAILBOX1 | ||
71 | #elif defined(CONFIG_ARCH_OMAP16XX) | ||
72 | # define OMAP1_MBOX_SIZE 0x2f | ||
73 | # define INT_DSP_MAILBOX1 INT_1610_DSP_MAILBOX1 | ||
74 | #endif | ||
75 | |||
76 | #define OMAP1_MBOX_BASE OMAP16XX_MAILBOX_BASE | ||
77 | |||
78 | static struct resource mbox_resources[] = { | ||
79 | { | ||
80 | .start = OMAP1_MBOX_BASE, | ||
81 | .end = OMAP1_MBOX_BASE + OMAP1_MBOX_SIZE, | ||
82 | .flags = IORESOURCE_MEM, | ||
83 | }, | ||
84 | { | ||
85 | .start = INT_DSP_MAILBOX1, | ||
86 | .flags = IORESOURCE_IRQ, | ||
87 | }, | ||
88 | }; | ||
89 | |||
90 | static struct platform_device mbox_device = { | ||
91 | .name = "omap1-mailbox", | ||
92 | .id = -1, | ||
93 | .num_resources = ARRAY_SIZE(mbox_resources), | ||
94 | .resource = mbox_resources, | ||
95 | }; | ||
96 | |||
97 | static inline void omap_init_mbox(void) | ||
98 | { | ||
99 | platform_device_register(&mbox_device); | ||
100 | } | ||
101 | #else | ||
102 | static inline void omap_init_mbox(void) { } | 66 | static inline void omap_init_mbox(void) { } |
103 | #endif | ||
104 | 67 | ||
105 | /*-------------------------------------------------------------------------*/ | 68 | /*-------------------------------------------------------------------------*/ |
106 | 69 | ||
@@ -230,42 +193,7 @@ static inline void omap_init_spi100k(void) | |||
230 | 193 | ||
231 | /*-------------------------------------------------------------------------*/ | 194 | /*-------------------------------------------------------------------------*/ |
232 | 195 | ||
233 | #if defined(CONFIG_OMAP_STI) | ||
234 | |||
235 | #define OMAP1_STI_BASE 0xfffea000 | ||
236 | #define OMAP1_STI_CHANNEL_BASE (OMAP1_STI_BASE + 0x400) | ||
237 | |||
238 | static struct resource sti_resources[] = { | ||
239 | { | ||
240 | .start = OMAP1_STI_BASE, | ||
241 | .end = OMAP1_STI_BASE + SZ_1K - 1, | ||
242 | .flags = IORESOURCE_MEM, | ||
243 | }, | ||
244 | { | ||
245 | .start = OMAP1_STI_CHANNEL_BASE, | ||
246 | .end = OMAP1_STI_CHANNEL_BASE + SZ_1K - 1, | ||
247 | .flags = IORESOURCE_MEM, | ||
248 | }, | ||
249 | { | ||
250 | .start = INT_1610_STI, | ||
251 | .flags = IORESOURCE_IRQ, | ||
252 | } | ||
253 | }; | ||
254 | |||
255 | static struct platform_device sti_device = { | ||
256 | .name = "sti", | ||
257 | .id = -1, | ||
258 | .num_resources = ARRAY_SIZE(sti_resources), | ||
259 | .resource = sti_resources, | ||
260 | }; | ||
261 | |||
262 | static inline void omap_init_sti(void) | ||
263 | { | ||
264 | platform_device_register(&sti_device); | ||
265 | } | ||
266 | #else | ||
267 | static inline void omap_init_sti(void) {} | 196 | static inline void omap_init_sti(void) {} |
268 | #endif | ||
269 | 197 | ||
270 | /*-------------------------------------------------------------------------*/ | 198 | /*-------------------------------------------------------------------------*/ |
271 | 199 | ||