diff options
Diffstat (limited to 'arch/arm/mach-mx3/devices.c')
-rw-r--r-- | arch/arm/mach-mx3/devices.c | 52 |
1 files changed, 20 insertions, 32 deletions
diff --git a/arch/arm/mach-mx3/devices.c b/arch/arm/mach-mx3/devices.c index 202c06c552b2..3f859ae8b850 100644 --- a/arch/arm/mach-mx3/devices.c +++ b/arch/arm/mach-mx3/devices.c | |||
@@ -97,30 +97,18 @@ struct platform_device mx3_camera = { | |||
97 | 97 | ||
98 | static struct resource otg_resources[] = { | 98 | static struct resource otg_resources[] = { |
99 | { | 99 | { |
100 | .start = MX31_OTG_BASE_ADDR, | 100 | .start = MX31_USB_OTG_BASE_ADDR, |
101 | .end = MX31_OTG_BASE_ADDR + 0x1ff, | 101 | .end = MX31_USB_OTG_BASE_ADDR + 0x1ff, |
102 | .flags = IORESOURCE_MEM, | 102 | .flags = IORESOURCE_MEM, |
103 | }, { | 103 | }, { |
104 | .start = MX31_INT_USB3, | 104 | .start = MX31_INT_USB_OTG, |
105 | .end = MX31_INT_USB3, | 105 | .end = MX31_INT_USB_OTG, |
106 | .flags = IORESOURCE_IRQ, | 106 | .flags = IORESOURCE_IRQ, |
107 | }, | 107 | }, |
108 | }; | 108 | }; |
109 | 109 | ||
110 | static u64 otg_dmamask = DMA_BIT_MASK(32); | 110 | static u64 otg_dmamask = DMA_BIT_MASK(32); |
111 | 111 | ||
112 | /* OTG gadget device */ | ||
113 | struct platform_device mxc_otg_udc_device = { | ||
114 | .name = "fsl-usb2-udc", | ||
115 | .id = -1, | ||
116 | .dev = { | ||
117 | .dma_mask = &otg_dmamask, | ||
118 | .coherent_dma_mask = DMA_BIT_MASK(32), | ||
119 | }, | ||
120 | .resource = otg_resources, | ||
121 | .num_resources = ARRAY_SIZE(otg_resources), | ||
122 | }; | ||
123 | |||
124 | /* OTG host */ | 112 | /* OTG host */ |
125 | struct platform_device mxc_otg_host = { | 113 | struct platform_device mxc_otg_host = { |
126 | .name = "mxc-ehci", | 114 | .name = "mxc-ehci", |
@@ -139,12 +127,12 @@ static u64 usbh1_dmamask = ~(u32)0; | |||
139 | 127 | ||
140 | static struct resource mxc_usbh1_resources[] = { | 128 | static struct resource mxc_usbh1_resources[] = { |
141 | { | 129 | { |
142 | .start = MX31_OTG_BASE_ADDR + 0x200, | 130 | .start = MX31_USB_HS1_BASE_ADDR, |
143 | .end = MX31_OTG_BASE_ADDR + 0x3ff, | 131 | .end = MX31_USB_HS1_BASE_ADDR + 0x1ff, |
144 | .flags = IORESOURCE_MEM, | 132 | .flags = IORESOURCE_MEM, |
145 | }, { | 133 | }, { |
146 | .start = MX31_INT_USB1, | 134 | .start = MX31_INT_USB_HS1, |
147 | .end = MX31_INT_USB1, | 135 | .end = MX31_INT_USB_HS1, |
148 | .flags = IORESOURCE_IRQ, | 136 | .flags = IORESOURCE_IRQ, |
149 | }, | 137 | }, |
150 | }; | 138 | }; |
@@ -166,12 +154,12 @@ static u64 usbh2_dmamask = ~(u32)0; | |||
166 | 154 | ||
167 | static struct resource mxc_usbh2_resources[] = { | 155 | static struct resource mxc_usbh2_resources[] = { |
168 | { | 156 | { |
169 | .start = MX31_OTG_BASE_ADDR + 0x400, | 157 | .start = MX31_USB_HS2_BASE_ADDR, |
170 | .end = MX31_OTG_BASE_ADDR + 0x5ff, | 158 | .end = MX31_USB_HS2_BASE_ADDR + 0x1ff, |
171 | .flags = IORESOURCE_MEM, | 159 | .flags = IORESOURCE_MEM, |
172 | }, { | 160 | }, { |
173 | .start = MX31_INT_USB2, | 161 | .start = MX31_INT_USB_HS2, |
174 | .end = MX31_INT_USB2, | 162 | .end = MX31_INT_USB_HS2, |
175 | .flags = IORESOURCE_IRQ, | 163 | .flags = IORESOURCE_IRQ, |
176 | }, | 164 | }, |
177 | }; | 165 | }; |
@@ -249,14 +237,14 @@ static int __init mx3_devices_init(void) | |||
249 | #endif | 237 | #endif |
250 | #if defined(CONFIG_ARCH_MX35) | 238 | #if defined(CONFIG_ARCH_MX35) |
251 | if (cpu_is_mx35()) { | 239 | if (cpu_is_mx35()) { |
252 | otg_resources[0].start = MX35_OTG_BASE_ADDR; | 240 | otg_resources[0].start = MX35_USB_OTG_BASE_ADDR; |
253 | otg_resources[0].end = MX35_OTG_BASE_ADDR + 0x1ff; | 241 | otg_resources[0].end = MX35_USB_OTG_BASE_ADDR + 0x1ff; |
254 | otg_resources[1].start = MX35_INT_USBOTG; | 242 | otg_resources[1].start = MX35_INT_USB_OTG; |
255 | otg_resources[1].end = MX35_INT_USBOTG; | 243 | otg_resources[1].end = MX35_INT_USB_OTG; |
256 | mxc_usbh1_resources[0].start = MX35_OTG_BASE_ADDR + 0x400; | 244 | mxc_usbh1_resources[0].start = MX35_USB_HS_BASE_ADDR; |
257 | mxc_usbh1_resources[0].end = MX35_OTG_BASE_ADDR + 0x5ff; | 245 | mxc_usbh1_resources[0].end = MX35_USB_HS_BASE_ADDR + 0x1ff; |
258 | mxc_usbh1_resources[1].start = MX35_INT_USBHS; | 246 | mxc_usbh1_resources[1].start = MX35_INT_USB_HS; |
259 | mxc_usbh1_resources[1].end = MX35_INT_USBHS; | 247 | mxc_usbh1_resources[1].end = MX35_INT_USB_HS; |
260 | imx_wdt_resources[0].start = MX35_WDOG_BASE_ADDR; | 248 | imx_wdt_resources[0].start = MX35_WDOG_BASE_ADDR; |
261 | imx_wdt_resources[0].end = MX35_WDOG_BASE_ADDR + 0x3fff; | 249 | imx_wdt_resources[0].end = MX35_WDOG_BASE_ADDR + 0x3fff; |
262 | } | 250 | } |