diff options
Diffstat (limited to 'arch/arm/mach-omap1/devices.c')
-rw-r--r-- | arch/arm/mach-omap1/devices.c | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/arch/arm/mach-omap1/devices.c b/arch/arm/mach-omap1/devices.c index 379100c17639..c00d602a2599 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 | ||