aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-pxa/pxa3xx.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-pxa/pxa3xx.c')
-rw-r--r--arch/arm/mach-pxa/pxa3xx.c24
1 files changed, 3 insertions, 21 deletions
diff --git a/arch/arm/mach-pxa/pxa3xx.c b/arch/arm/mach-pxa/pxa3xx.c
index b7e53829d376..490893824e78 100644
--- a/arch/arm/mach-pxa/pxa3xx.c
+++ b/arch/arm/mach-pxa/pxa3xx.c
@@ -29,6 +29,7 @@
29#include <mach/pm.h> 29#include <mach/pm.h>
30#include <mach/dma.h> 30#include <mach/dma.h>
31#include <mach/ssp.h> 31#include <mach/ssp.h>
32#include <mach/i2c.h>
32 33
33#include "generic.h" 34#include "generic.h"
34#include "devices.h" 35#include "devices.h"
@@ -544,28 +545,9 @@ void __init pxa3xx_init_irq(void)
544 * device registration specific to PXA3xx. 545 * device registration specific to PXA3xx.
545 */ 546 */
546 547
547static struct resource i2c_power_resources[] = {
548 {
549 .start = 0x40f500c0,
550 .end = 0x40f500d3,
551 .flags = IORESOURCE_MEM,
552 }, {
553 .start = IRQ_PWRI2C,
554 .end = IRQ_PWRI2C,
555 .flags = IORESOURCE_IRQ,
556 },
557};
558
559struct platform_device pxa3xx_device_i2c_power = {
560 .name = "pxa2xx-i2c",
561 .id = 1,
562 .resource = i2c_power_resources,
563 .num_resources = ARRAY_SIZE(i2c_power_resources),
564};
565
566void __init pxa3xx_set_i2c_power_info(struct i2c_pxa_platform_data *info) 548void __init pxa3xx_set_i2c_power_info(struct i2c_pxa_platform_data *info)
567{ 549{
568 pxa3xx_device_i2c_power.dev.platform_data = info; 550 pxa_register_device(&pxa3xx_device_i2c_power, info);
569} 551}
570 552
571static struct platform_device *devices[] __initdata = { 553static struct platform_device *devices[] __initdata = {
@@ -574,6 +556,7 @@ static struct platform_device *devices[] __initdata = {
574 &pxa_device_btuart, 556 &pxa_device_btuart,
575 &pxa_device_stuart, 557 &pxa_device_stuart,
576 &pxa_device_i2s, 558 &pxa_device_i2s,
559 &sa1100_device_rtc,
577 &pxa_device_rtc, 560 &pxa_device_rtc,
578 &pxa27x_device_ssp1, 561 &pxa27x_device_ssp1,
579 &pxa27x_device_ssp2, 562 &pxa27x_device_ssp2,
@@ -581,7 +564,6 @@ static struct platform_device *devices[] __initdata = {
581 &pxa3xx_device_ssp4, 564 &pxa3xx_device_ssp4,
582 &pxa27x_device_pwm0, 565 &pxa27x_device_pwm0,
583 &pxa27x_device_pwm1, 566 &pxa27x_device_pwm1,
584 &pxa3xx_device_i2c_power,
585}; 567};
586 568
587static struct sys_device pxa3xx_sysdev[] = { 569static struct sys_device pxa3xx_sysdev[] = {