diff options
Diffstat (limited to 'arch/arm/mach-mx3/devices.c')
-rw-r--r-- | arch/arm/mach-mx3/devices.c | 89 |
1 files changed, 0 insertions, 89 deletions
diff --git a/arch/arm/mach-mx3/devices.c b/arch/arm/mach-mx3/devices.c index 3f859ae8b850..c122c0faaaa5 100644 --- a/arch/arm/mach-mx3/devices.c +++ b/arch/arm/mach-mx3/devices.c | |||
@@ -95,87 +95,6 @@ struct platform_device mx3_camera = { | |||
95 | }, | 95 | }, |
96 | }; | 96 | }; |
97 | 97 | ||
98 | static struct resource otg_resources[] = { | ||
99 | { | ||
100 | .start = MX31_USB_OTG_BASE_ADDR, | ||
101 | .end = MX31_USB_OTG_BASE_ADDR + 0x1ff, | ||
102 | .flags = IORESOURCE_MEM, | ||
103 | }, { | ||
104 | .start = MX31_INT_USB_OTG, | ||
105 | .end = MX31_INT_USB_OTG, | ||
106 | .flags = IORESOURCE_IRQ, | ||
107 | }, | ||
108 | }; | ||
109 | |||
110 | static u64 otg_dmamask = DMA_BIT_MASK(32); | ||
111 | |||
112 | /* OTG host */ | ||
113 | struct platform_device mxc_otg_host = { | ||
114 | .name = "mxc-ehci", | ||
115 | .id = 0, | ||
116 | .dev = { | ||
117 | .coherent_dma_mask = 0xffffffff, | ||
118 | .dma_mask = &otg_dmamask, | ||
119 | }, | ||
120 | .resource = otg_resources, | ||
121 | .num_resources = ARRAY_SIZE(otg_resources), | ||
122 | }; | ||
123 | |||
124 | /* USB host 1 */ | ||
125 | |||
126 | static u64 usbh1_dmamask = ~(u32)0; | ||
127 | |||
128 | static struct resource mxc_usbh1_resources[] = { | ||
129 | { | ||
130 | .start = MX31_USB_HS1_BASE_ADDR, | ||
131 | .end = MX31_USB_HS1_BASE_ADDR + 0x1ff, | ||
132 | .flags = IORESOURCE_MEM, | ||
133 | }, { | ||
134 | .start = MX31_INT_USB_HS1, | ||
135 | .end = MX31_INT_USB_HS1, | ||
136 | .flags = IORESOURCE_IRQ, | ||
137 | }, | ||
138 | }; | ||
139 | |||
140 | struct platform_device mxc_usbh1 = { | ||
141 | .name = "mxc-ehci", | ||
142 | .id = 1, | ||
143 | .dev = { | ||
144 | .coherent_dma_mask = 0xffffffff, | ||
145 | .dma_mask = &usbh1_dmamask, | ||
146 | }, | ||
147 | .resource = mxc_usbh1_resources, | ||
148 | .num_resources = ARRAY_SIZE(mxc_usbh1_resources), | ||
149 | }; | ||
150 | |||
151 | #ifdef CONFIG_ARCH_MX31 | ||
152 | /* USB host 2 */ | ||
153 | static u64 usbh2_dmamask = ~(u32)0; | ||
154 | |||
155 | static struct resource mxc_usbh2_resources[] = { | ||
156 | { | ||
157 | .start = MX31_USB_HS2_BASE_ADDR, | ||
158 | .end = MX31_USB_HS2_BASE_ADDR + 0x1ff, | ||
159 | .flags = IORESOURCE_MEM, | ||
160 | }, { | ||
161 | .start = MX31_INT_USB_HS2, | ||
162 | .end = MX31_INT_USB_HS2, | ||
163 | .flags = IORESOURCE_IRQ, | ||
164 | }, | ||
165 | }; | ||
166 | |||
167 | struct platform_device mxc_usbh2 = { | ||
168 | .name = "mxc-ehci", | ||
169 | .id = 2, | ||
170 | .dev = { | ||
171 | .coherent_dma_mask = 0xffffffff, | ||
172 | .dma_mask = &usbh2_dmamask, | ||
173 | }, | ||
174 | .resource = mxc_usbh2_resources, | ||
175 | .num_resources = ARRAY_SIZE(mxc_usbh2_resources), | ||
176 | }; | ||
177 | #endif | ||
178 | |||
179 | static struct resource imx_wdt_resources[] = { | 98 | static struct resource imx_wdt_resources[] = { |
180 | { | 99 | { |
181 | .flags = IORESOURCE_MEM, | 100 | .flags = IORESOURCE_MEM, |
@@ -237,14 +156,6 @@ static int __init mx3_devices_init(void) | |||
237 | #endif | 156 | #endif |
238 | #if defined(CONFIG_ARCH_MX35) | 157 | #if defined(CONFIG_ARCH_MX35) |
239 | if (cpu_is_mx35()) { | 158 | if (cpu_is_mx35()) { |
240 | otg_resources[0].start = MX35_USB_OTG_BASE_ADDR; | ||
241 | otg_resources[0].end = MX35_USB_OTG_BASE_ADDR + 0x1ff; | ||
242 | otg_resources[1].start = MX35_INT_USB_OTG; | ||
243 | otg_resources[1].end = MX35_INT_USB_OTG; | ||
244 | mxc_usbh1_resources[0].start = MX35_USB_HS_BASE_ADDR; | ||
245 | mxc_usbh1_resources[0].end = MX35_USB_HS_BASE_ADDR + 0x1ff; | ||
246 | mxc_usbh1_resources[1].start = MX35_INT_USB_HS; | ||
247 | mxc_usbh1_resources[1].end = MX35_INT_USB_HS; | ||
248 | imx_wdt_resources[0].start = MX35_WDOG_BASE_ADDR; | 159 | imx_wdt_resources[0].start = MX35_WDOG_BASE_ADDR; |
249 | imx_wdt_resources[0].end = MX35_WDOG_BASE_ADDR + 0x3fff; | 160 | imx_wdt_resources[0].end = MX35_WDOG_BASE_ADDR + 0x3fff; |
250 | } | 161 | } |