aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-pxa/devices.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-pxa/devices.c')
-rw-r--r--arch/arm/mach-pxa/devices.c25
1 files changed, 24 insertions, 1 deletions
diff --git a/arch/arm/mach-pxa/devices.c b/arch/arm/mach-pxa/devices.c
index e2b427fa55e..d4cc41d04b2 100644
--- a/arch/arm/mach-pxa/devices.c
+++ b/arch/arm/mach-pxa/devices.c
@@ -167,13 +167,18 @@ static struct resource pxa_resource_ffuart[] = {
167 } 167 }
168}; 168};
169 169
170struct platform_device pxa_device_ffuart= { 170struct platform_device pxa_device_ffuart = {
171 .name = "pxa2xx-uart", 171 .name = "pxa2xx-uart",
172 .id = 0, 172 .id = 0,
173 .resource = pxa_resource_ffuart, 173 .resource = pxa_resource_ffuart,
174 .num_resources = ARRAY_SIZE(pxa_resource_ffuart), 174 .num_resources = ARRAY_SIZE(pxa_resource_ffuart),
175}; 175};
176 176
177void __init pxa_set_ffuart_info(void *info)
178{
179 pxa_register_device(&pxa_device_ffuart, info);
180}
181
177static struct resource pxa_resource_btuart[] = { 182static struct resource pxa_resource_btuart[] = {
178 { 183 {
179 .start = 0x40200000, 184 .start = 0x40200000,
@@ -193,6 +198,11 @@ struct platform_device pxa_device_btuart = {
193 .num_resources = ARRAY_SIZE(pxa_resource_btuart), 198 .num_resources = ARRAY_SIZE(pxa_resource_btuart),
194}; 199};
195 200
201void __init pxa_set_btuart_info(void *info)
202{
203 pxa_register_device(&pxa_device_btuart, info);
204}
205
196static struct resource pxa_resource_stuart[] = { 206static struct resource pxa_resource_stuart[] = {
197 { 207 {
198 .start = 0x40700000, 208 .start = 0x40700000,
@@ -212,6 +222,11 @@ struct platform_device pxa_device_stuart = {
212 .num_resources = ARRAY_SIZE(pxa_resource_stuart), 222 .num_resources = ARRAY_SIZE(pxa_resource_stuart),
213}; 223};
214 224
225void __init pxa_set_stuart_info(void *info)
226{
227 pxa_register_device(&pxa_device_stuart, info);
228}
229
215static struct resource pxa_resource_hwuart[] = { 230static struct resource pxa_resource_hwuart[] = {
216 { 231 {
217 .start = 0x41600000, 232 .start = 0x41600000,
@@ -231,6 +246,14 @@ struct platform_device pxa_device_hwuart = {
231 .num_resources = ARRAY_SIZE(pxa_resource_hwuart), 246 .num_resources = ARRAY_SIZE(pxa_resource_hwuart),
232}; 247};
233 248
249void __init pxa_set_hwuart_info(void *info)
250{
251 if (cpu_is_pxa255())
252 pxa_register_device(&pxa_device_hwuart, info);
253 else
254 pr_info("UART: Ignoring attempt to register HWUART on non-PXA255 hardware");
255}
256
234static struct resource pxai2c_resources[] = { 257static struct resource pxai2c_resources[] = {
235 { 258 {
236 .start = 0x40301680, 259 .start = 0x40301680,