diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2011-07-30 17:41:49 -0400 |
---|---|---|
committer | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2011-08-01 05:16:55 -0400 |
commit | 7d92e8e6c4d45d33dd32a028081c89a6dedab032 (patch) | |
tree | 3c9329d9d2d30e99314294f605f74716c8f56162 /arch/arm/plat-mxc | |
parent | b7ca83273d0f4dc160711727292a277522d5e4a1 (diff) |
ARM: mx5: dynamically allocate mxc-ehci devices
Additionally make the usb related defines consistent with the other imx
SoCs.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Diffstat (limited to 'arch/arm/plat-mxc')
-rw-r--r-- | arch/arm/plat-mxc/devices/platform-mxc-ehci.c | 9 | ||||
-rw-r--r-- | arch/arm/plat-mxc/include/mach/mx51.h | 11 |
2 files changed, 16 insertions, 4 deletions
diff --git a/arch/arm/plat-mxc/devices/platform-mxc-ehci.c b/arch/arm/plat-mxc/devices/platform-mxc-ehci.c index e1763e03e7cb..35851d889aca 100644 --- a/arch/arm/plat-mxc/devices/platform-mxc-ehci.c +++ b/arch/arm/plat-mxc/devices/platform-mxc-ehci.c | |||
@@ -49,6 +49,15 @@ const struct imx_mxc_ehci_data imx35_mxc_ehci_hs_data __initconst = | |||
49 | imx_mxc_ehci_data_entry_single(MX35, 1, HS); | 49 | imx_mxc_ehci_data_entry_single(MX35, 1, HS); |
50 | #endif /* ifdef CONFIG_SOC_IMX35 */ | 50 | #endif /* ifdef CONFIG_SOC_IMX35 */ |
51 | 51 | ||
52 | #ifdef CONFIG_SOC_IMX51 | ||
53 | const struct imx_mxc_ehci_data imx51_mxc_ehci_otg_data __initconst = | ||
54 | imx_mxc_ehci_data_entry_single(MX51, 0, OTG); | ||
55 | const struct imx_mxc_ehci_data imx51_mxc_ehci_hs_data[] __initconst = { | ||
56 | imx_mxc_ehci_data_entry_single(MX51, 1, HS1), | ||
57 | imx_mxc_ehci_data_entry_single(MX51, 2, HS2), | ||
58 | }; | ||
59 | #endif /* ifdef CONFIG_SOC_IMX51 */ | ||
60 | |||
52 | struct platform_device *__init imx_add_mxc_ehci( | 61 | struct platform_device *__init imx_add_mxc_ehci( |
53 | const struct imx_mxc_ehci_data *data, | 62 | const struct imx_mxc_ehci_data *data, |
54 | const struct mxc_usbh_platform_data *pdata) | 63 | const struct mxc_usbh_platform_data *pdata) |
diff --git a/arch/arm/plat-mxc/include/mach/mx51.h b/arch/arm/plat-mxc/include/mach/mx51.h index d240b6f267b1..9666e31956b7 100644 --- a/arch/arm/plat-mxc/include/mach/mx51.h +++ b/arch/arm/plat-mxc/include/mach/mx51.h | |||
@@ -55,7 +55,10 @@ | |||
55 | #define MX51_AIPS1_BASE_ADDR 0x73f00000 | 55 | #define MX51_AIPS1_BASE_ADDR 0x73f00000 |
56 | #define MX51_AIPS1_SIZE SZ_1M | 56 | #define MX51_AIPS1_SIZE SZ_1M |
57 | 57 | ||
58 | #define MX51_OTG_BASE_ADDR (MX51_AIPS1_BASE_ADDR + 0x80000) | 58 | #define MX51_USB_BASE_ADDR (MX51_AIPS1_BASE_ADDR + 0x80000) |
59 | #define MX51_USB_OTG_BASE_ADDR (MX51_USB_BASE_ADDR + 0x0000) | ||
60 | #define MX51_USB_HS1_BASE_ADDR (MX51_USB_BASE_ADDR + 0x0200) | ||
61 | #define MX51_USB_HS2_BASE_ADDR (MX51_USB_BASE_ADDR + 0x0400) | ||
59 | #define MX51_GPIO1_BASE_ADDR (MX51_AIPS1_BASE_ADDR + 0x84000) | 62 | #define MX51_GPIO1_BASE_ADDR (MX51_AIPS1_BASE_ADDR + 0x84000) |
60 | #define MX51_GPIO2_BASE_ADDR (MX51_AIPS1_BASE_ADDR + 0x88000) | 63 | #define MX51_GPIO2_BASE_ADDR (MX51_AIPS1_BASE_ADDR + 0x88000) |
61 | #define MX51_GPIO3_BASE_ADDR (MX51_AIPS1_BASE_ADDR + 0x8c000) | 64 | #define MX51_GPIO3_BASE_ADDR (MX51_AIPS1_BASE_ADDR + 0x8c000) |
@@ -255,10 +258,10 @@ | |||
255 | #define MX51_INT_IPU_SYN 11 | 258 | #define MX51_INT_IPU_SYN 11 |
256 | #define MX51_INT_GPU 12 | 259 | #define MX51_INT_GPU 12 |
257 | #define MX51_INT_RESV13 13 | 260 | #define MX51_INT_RESV13 13 |
258 | #define MX51_INT_USB_H1 14 | 261 | #define MX51_INT_USB_HS1 14 |
259 | #define MX51_INT_EMI 15 | 262 | #define MX51_INT_EMI 15 |
260 | #define MX51_INT_USB_H2 16 | 263 | #define MX51_INT_USB_HS2 16 |
261 | #define MX51_INT_USB_H3 17 | 264 | #define MX51_INT_USB_HS3 17 |
262 | #define MX51_INT_USB_OTG 18 | 265 | #define MX51_INT_USB_OTG 18 |
263 | #define MX51_INT_SAHARA_H0 19 | 266 | #define MX51_INT_SAHARA_H0 19 |
264 | #define MX51_INT_SAHARA_H1 20 | 267 | #define MX51_INT_SAHARA_H1 20 |