diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2008-10-11 13:09:45 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-10-11 13:09:45 -0400 |
commit | 7cc4e87f912bbefa440a51856b8d076e5d1f554a (patch) | |
tree | 1b8df8683f3de37d2e8211ffa8d151f60d59af62 /arch/arm/mach-mx3/devices.c | |
parent | 5ba2f67afb02c5302b2898949ed6fc3b3d37dcf1 (diff) | |
parent | 69fc7eed5f56bce15b239e5110de2575a6970df4 (diff) |
Merge branch 'for-linus' of master.kernel.org:/home/rmk/linux-2.6-arm
* 'for-linus' of master.kernel.org:/home/rmk/linux-2.6-arm: (236 commits)
[ARM] 5300/1: fixup spitz reset during boot
[ARM] 5295/1: make ZONE_DMA optional
[ARM] 5239/1: Palm Zire 72 power management support
[ARM] 5298/1: Drop desc_handle_irq()
[ARM] 5297/1: [KS8695] Fix two compile-time warnings
[ARM] 5296/1: [KS8695] Replace macro's with trailing underscores.
[ARM] pxa: allow multi-machine PCMCIA builds
[ARM] pxa: add preliminary CPUFREQ support for PXA3xx
[ARM] pxa: add missing ACCR bit definitions to pxa3xx-regs.h
[ARM] pxa: rename cpu-pxa.c to cpufreq-pxa2xx.c
[ARM] pxa/zylonite: add support for USB OHCI
[ARM] ohci-pxa27x: use ioremap() and offset for register access
[ARM] ohci-pxa27x: introduce pxa27x_clear_otgph()
[ARM] ohci-pxa27x: use platform_get_{irq,resource} for the resource
[ARM] ohci-pxa27x: move OHCI controller specific registers into the driver
[ARM] ohci-pxa27x: introduce flags to avoid direct access to OHCI registers
[ARM] pxa: move I2S register and bit definitions into pxa2xx-i2s.c
[ARM] pxa: simplify DMA register definitions
[ARM] pxa: make additional DCSR bits valid for PXA3xx
[ARM] pxa: move i2c register and bit definitions into i2c-pxa.c
...
Fixed up conflicts in
arch/arm/mach-versatile/core.c
sound/soc/pxa/pxa2xx-ac97.c
sound/soc/pxa/pxa2xx-i2s.c
manually.
Diffstat (limited to 'arch/arm/mach-mx3/devices.c')
-rw-r--r-- | arch/arm/mach-mx3/devices.c | 43 |
1 files changed, 5 insertions, 38 deletions
diff --git a/arch/arm/mach-mx3/devices.c b/arch/arm/mach-mx3/devices.c index e08c6a8ac56b..a6bdcc07f3c9 100644 --- a/arch/arm/mach-mx3/devices.c +++ b/arch/arm/mach-mx3/devices.c | |||
@@ -36,7 +36,7 @@ static struct resource uart0[] = { | |||
36 | }, | 36 | }, |
37 | }; | 37 | }; |
38 | 38 | ||
39 | static struct platform_device mxc_uart_device0 = { | 39 | struct platform_device mxc_uart_device0 = { |
40 | .name = "imx-uart", | 40 | .name = "imx-uart", |
41 | .id = 0, | 41 | .id = 0, |
42 | .resource = uart0, | 42 | .resource = uart0, |
@@ -55,7 +55,7 @@ static struct resource uart1[] = { | |||
55 | }, | 55 | }, |
56 | }; | 56 | }; |
57 | 57 | ||
58 | static struct platform_device mxc_uart_device1 = { | 58 | struct platform_device mxc_uart_device1 = { |
59 | .name = "imx-uart", | 59 | .name = "imx-uart", |
60 | .id = 1, | 60 | .id = 1, |
61 | .resource = uart1, | 61 | .resource = uart1, |
@@ -74,7 +74,7 @@ static struct resource uart2[] = { | |||
74 | }, | 74 | }, |
75 | }; | 75 | }; |
76 | 76 | ||
77 | static struct platform_device mxc_uart_device2 = { | 77 | struct platform_device mxc_uart_device2 = { |
78 | .name = "imx-uart", | 78 | .name = "imx-uart", |
79 | .id = 2, | 79 | .id = 2, |
80 | .resource = uart2, | 80 | .resource = uart2, |
@@ -93,7 +93,7 @@ static struct resource uart3[] = { | |||
93 | }, | 93 | }, |
94 | }; | 94 | }; |
95 | 95 | ||
96 | static struct platform_device mxc_uart_device3 = { | 96 | struct platform_device mxc_uart_device3 = { |
97 | .name = "imx-uart", | 97 | .name = "imx-uart", |
98 | .id = 3, | 98 | .id = 3, |
99 | .resource = uart3, | 99 | .resource = uart3, |
@@ -112,46 +112,13 @@ static struct resource uart4[] = { | |||
112 | }, | 112 | }, |
113 | }; | 113 | }; |
114 | 114 | ||
115 | static struct platform_device mxc_uart_device4 = { | 115 | struct platform_device mxc_uart_device4 = { |
116 | .name = "imx-uart", | 116 | .name = "imx-uart", |
117 | .id = 4, | 117 | .id = 4, |
118 | .resource = uart4, | 118 | .resource = uart4, |
119 | .num_resources = ARRAY_SIZE(uart4), | 119 | .num_resources = ARRAY_SIZE(uart4), |
120 | }; | 120 | }; |
121 | 121 | ||
122 | /* | ||
123 | * Register only those UARTs that physically exist | ||
124 | */ | ||
125 | int __init imx_init_uart(int uart_no, struct imxuart_platform_data *pdata) | ||
126 | { | ||
127 | switch (uart_no) { | ||
128 | case 0: | ||
129 | mxc_uart_device0.dev.platform_data = pdata; | ||
130 | platform_device_register(&mxc_uart_device0); | ||
131 | break; | ||
132 | case 1: | ||
133 | mxc_uart_device1.dev.platform_data = pdata; | ||
134 | platform_device_register(&mxc_uart_device1); | ||
135 | break; | ||
136 | case 2: | ||
137 | mxc_uart_device2.dev.platform_data = pdata; | ||
138 | platform_device_register(&mxc_uart_device2); | ||
139 | break; | ||
140 | case 3: | ||
141 | mxc_uart_device3.dev.platform_data = pdata; | ||
142 | platform_device_register(&mxc_uart_device3); | ||
143 | break; | ||
144 | case 4: | ||
145 | mxc_uart_device4.dev.platform_data = pdata; | ||
146 | platform_device_register(&mxc_uart_device4); | ||
147 | break; | ||
148 | default: | ||
149 | return -ENODEV; | ||
150 | } | ||
151 | |||
152 | return 0; | ||
153 | } | ||
154 | |||
155 | /* GPIO port description */ | 122 | /* GPIO port description */ |
156 | static struct mxc_gpio_port imx_gpio_ports[] = { | 123 | static struct mxc_gpio_port imx_gpio_ports[] = { |
157 | [0] = { | 124 | [0] = { |