diff options
Diffstat (limited to 'arch/arm/mach-pxa/pxa27x.c')
-rw-r--r-- | arch/arm/mach-pxa/pxa27x.c | 26 |
1 files changed, 3 insertions, 23 deletions
diff --git a/arch/arm/mach-pxa/pxa27x.c b/arch/arm/mach-pxa/pxa27x.c index 15c8e5b9f9bc..411bec54fdc4 100644 --- a/arch/arm/mach-pxa/pxa27x.c +++ b/arch/arm/mach-pxa/pxa27x.c | |||
@@ -332,38 +332,18 @@ static int pxa27x_set_wake(unsigned int irq, unsigned int on) | |||
332 | void __init pxa27x_init_irq(void) | 332 | void __init pxa27x_init_irq(void) |
333 | { | 333 | { |
334 | pxa_init_irq(34, pxa27x_set_wake); | 334 | pxa_init_irq(34, pxa27x_set_wake); |
335 | pxa_init_gpio(128, pxa27x_set_wake); | 335 | pxa_init_gpio(121, pxa27x_set_wake); |
336 | } | 336 | } |
337 | 337 | ||
338 | /* | 338 | /* |
339 | * device registration specific to PXA27x. | 339 | * device registration specific to PXA27x. |
340 | */ | 340 | */ |
341 | |||
342 | static struct resource i2c_power_resources[] = { | ||
343 | { | ||
344 | .start = 0x40f00180, | ||
345 | .end = 0x40f001a3, | ||
346 | .flags = IORESOURCE_MEM, | ||
347 | }, { | ||
348 | .start = IRQ_PWRI2C, | ||
349 | .end = IRQ_PWRI2C, | ||
350 | .flags = IORESOURCE_IRQ, | ||
351 | }, | ||
352 | }; | ||
353 | |||
354 | struct platform_device pxa27x_device_i2c_power = { | ||
355 | .name = "pxa2xx-i2c", | ||
356 | .id = 1, | ||
357 | .resource = i2c_power_resources, | ||
358 | .num_resources = ARRAY_SIZE(i2c_power_resources), | ||
359 | }; | ||
360 | |||
361 | void __init pxa27x_set_i2c_power_info(struct i2c_pxa_platform_data *info) | 341 | void __init pxa27x_set_i2c_power_info(struct i2c_pxa_platform_data *info) |
362 | { | 342 | { |
363 | local_irq_disable(); | 343 | local_irq_disable(); |
364 | PCFR |= PCFR_PI2CEN; | 344 | PCFR |= PCFR_PI2CEN; |
365 | local_irq_enable(); | 345 | local_irq_enable(); |
366 | pxa27x_device_i2c_power.dev.platform_data = info; | 346 | pxa_register_device(&pxa27x_device_i2c_power, info); |
367 | } | 347 | } |
368 | 348 | ||
369 | static struct platform_device *devices[] __initdata = { | 349 | static struct platform_device *devices[] __initdata = { |
@@ -372,8 +352,8 @@ static struct platform_device *devices[] __initdata = { | |||
372 | &pxa_device_btuart, | 352 | &pxa_device_btuart, |
373 | &pxa_device_stuart, | 353 | &pxa_device_stuart, |
374 | &pxa_device_i2s, | 354 | &pxa_device_i2s, |
355 | &sa1100_device_rtc, | ||
375 | &pxa_device_rtc, | 356 | &pxa_device_rtc, |
376 | &pxa27x_device_i2c_power, | ||
377 | &pxa27x_device_ssp1, | 357 | &pxa27x_device_ssp1, |
378 | &pxa27x_device_ssp2, | 358 | &pxa27x_device_ssp2, |
379 | &pxa27x_device_ssp3, | 359 | &pxa27x_device_ssp3, |