aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-imx
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2010-11-02 05:03:51 -0400
committerUwe Kleine-König <u.kleine-koenig@pengutronix.de>2010-11-17 04:01:20 -0500
commite08300043ee4e2df10be551b76e126d6c02f26cc (patch)
tree7b6125c6d6bb3d6e853bc251077fa4ac28223f7d /arch/arm/mach-imx
parent300f86da1787c680598ea441aaa602a1664fba86 (diff)
ARM: imx: dynamically allocate imx_udc device
This is only available for mx1 machines with no in-tree user. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-imx')
-rw-r--r--arch/arm/mach-imx/devices.c43
-rw-r--r--arch/arm/mach-imx/devices.h1
2 files changed, 0 insertions, 44 deletions
diff --git a/arch/arm/mach-imx/devices.c b/arch/arm/mach-imx/devices.c
index cdc6f3271c5f..fba628551dc9 100644
--- a/arch/arm/mach-imx/devices.c
+++ b/arch/arm/mach-imx/devices.c
@@ -70,49 +70,6 @@ struct platform_device imx1_camera_device = {
70 .num_resources = ARRAY_SIZE(imx1_camera_resources), 70 .num_resources = ARRAY_SIZE(imx1_camera_resources),
71}; 71};
72 72
73static struct resource imx_usb_resources[] = {
74 {
75 .start = 0x00212000,
76 .end = 0x00212148,
77 .flags = IORESOURCE_MEM,
78 }, {
79 .start = MX1_USBD_INT0,
80 .end = MX1_USBD_INT0,
81 .flags = IORESOURCE_IRQ,
82 }, {
83 .start = MX1_USBD_INT1,
84 .end = MX1_USBD_INT1,
85 .flags = IORESOURCE_IRQ,
86 }, {
87 .start = MX1_USBD_INT2,
88 .end = MX1_USBD_INT2,
89 .flags = IORESOURCE_IRQ,
90 }, {
91 .start = MX1_USBD_INT3,
92 .end = MX1_USBD_INT3,
93 .flags = IORESOURCE_IRQ,
94 }, {
95 .start = MX1_USBD_INT4,
96 .end = MX1_USBD_INT4,
97 .flags = IORESOURCE_IRQ,
98 }, {
99 .start = MX1_USBD_INT5,
100 .end = MX1_USBD_INT5,
101 .flags = IORESOURCE_IRQ,
102 }, {
103 .start = MX1_USBD_INT6,
104 .end = MX1_USBD_INT6,
105 .flags = IORESOURCE_IRQ,
106 },
107};
108
109struct platform_device imx_usb_device = {
110 .name = "imx_udc",
111 .id = 0,
112 .num_resources = ARRAY_SIZE(imx_usb_resources),
113 .resource = imx_usb_resources,
114};
115
116/* GPIO port description */ 73/* GPIO port description */
117static struct mxc_gpio_port imx_gpio_ports[] = { 74static struct mxc_gpio_port imx_gpio_ports[] = {
118 { 75 {
diff --git a/arch/arm/mach-imx/devices.h b/arch/arm/mach-imx/devices.h
index a7e47f4dbfcc..91906ce21c40 100644
--- a/arch/arm/mach-imx/devices.h
+++ b/arch/arm/mach-imx/devices.h
@@ -1,6 +1,5 @@
1#ifdef CONFIG_ARCH_MX1 1#ifdef CONFIG_ARCH_MX1
2extern struct platform_device imx1_camera_device; 2extern struct platform_device imx1_camera_device;
3extern struct platform_device imx_usb_device;
4#endif 3#endif
5 4
6#if defined(CONFIG_MACH_MX21) || defined(CONFIG_MACH_MX27) 5#if defined(CONFIG_MACH_MX21) || defined(CONFIG_MACH_MX27)