diff options
Diffstat (limited to 'arch/arm/mach-iop32x')
-rw-r--r-- | arch/arm/mach-iop32x/em7210.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/arch/arm/mach-iop32x/em7210.c b/arch/arm/mach-iop32x/em7210.c index f0362053fdcc..c947152f9a3c 100644 --- a/arch/arm/mach-iop32x/em7210.c +++ b/arch/arm/mach-iop32x/em7210.c | |||
@@ -22,6 +22,7 @@ | |||
22 | #include <linux/serial_8250.h> | 22 | #include <linux/serial_8250.h> |
23 | #include <linux/mtd/physmap.h> | 23 | #include <linux/mtd/physmap.h> |
24 | #include <linux/platform_device.h> | 24 | #include <linux/platform_device.h> |
25 | #include <linux/i2c.h> | ||
25 | #include <asm/hardware.h> | 26 | #include <asm/hardware.h> |
26 | #include <linux/io.h> | 27 | #include <linux/io.h> |
27 | #include <linux/irq.h> | 28 | #include <linux/irq.h> |
@@ -44,6 +45,15 @@ static struct sys_timer em7210_timer = { | |||
44 | .offset = iop_gettimeoffset, | 45 | .offset = iop_gettimeoffset, |
45 | }; | 46 | }; |
46 | 47 | ||
48 | /* | ||
49 | * EM7210 RTC | ||
50 | */ | ||
51 | static struct i2c_board_info __initdata em7210_i2c_devices[] = { | ||
52 | { | ||
53 | I2C_BOARD_INFO("rtc-rs5c372", 0x32), | ||
54 | .type = "rs5c372a", | ||
55 | }, | ||
56 | }; | ||
47 | 57 | ||
48 | /* | 58 | /* |
49 | * EM7210 I/O | 59 | * EM7210 I/O |
@@ -187,6 +197,9 @@ static void __init em7210_init_machine(void) | |||
187 | platform_device_register(&iop3xx_dma_0_channel); | 197 | platform_device_register(&iop3xx_dma_0_channel); |
188 | platform_device_register(&iop3xx_dma_1_channel); | 198 | platform_device_register(&iop3xx_dma_1_channel); |
189 | 199 | ||
200 | i2c_register_board_info(0, em7210_i2c_devices, | ||
201 | ARRAY_SIZE(em7210_i2c_devices)); | ||
202 | |||
190 | 203 | ||
191 | pm_power_off = em7210_power_off; | 204 | pm_power_off = em7210_power_off; |
192 | } | 205 | } |