aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-iop32x/n2100.c
diff options
context:
space:
mode:
authorMartin Michlmayr <tbm@cyrius.com>2007-07-17 07:04:57 -0400
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-07-17 13:23:08 -0400
commitc00593f6f816e5cfa6d193a2561ca77541f71424 (patch)
tree1b40eb8a8d2e3b4a6e78d2302882d7115cf4c20a /arch/arm/mach-iop32x/n2100.c
parentd815461c7a73903d0a926b3cace6f69e144c54a3 (diff)
Thecus N2100: register rtc-rs5c372 i2c device
Use the new i2c framework to load rtc-rs5c372 for the Thecus N2100. Signed-off-by: Martin Michlmayr <tbm@cyrius.com> Tested-by: Voipio Riku <Riku.Voipio@movial.fi> Cc: Russell King <rmk@arm.linux.org.uk> Cc: Lennert Buytenhek <buytenh@wantstofly.org> Cc: Jean Delvare <khali@linux-fr.org> Cc: David Brownell <david-b@pacbell.net> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/arm/mach-iop32x/n2100.c')
-rw-r--r--arch/arm/mach-iop32x/n2100.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/arm/mach-iop32x/n2100.c b/arch/arm/mach-iop32x/n2100.c
index 390a97d39e5a..1873bd8cd1b2 100644
--- a/arch/arm/mach-iop32x/n2100.c
+++ b/arch/arm/mach-iop32x/n2100.c
@@ -25,6 +25,7 @@
25#include <linux/serial_core.h> 25#include <linux/serial_core.h>
26#include <linux/serial_8250.h> 26#include <linux/serial_8250.h>
27#include <linux/mtd/physmap.h> 27#include <linux/mtd/physmap.h>
28#include <linux/i2c.h>
28#include <linux/platform_device.h> 29#include <linux/platform_device.h>
29#include <linux/reboot.h> 30#include <linux/reboot.h>
30#include <asm/hardware.h> 31#include <asm/hardware.h>
@@ -199,6 +200,12 @@ static struct platform_device n2100_serial_device = {
199 .resource = &n2100_uart_resource, 200 .resource = &n2100_uart_resource,
200}; 201};
201 202
203static struct i2c_board_info __initdata n2100_i2c_devices[] = {
204 {
205 I2C_BOARD_INFO("rtc-rs5c372", 0x32),
206 .type = "rs5c372b",
207 },
208};
202 209
203/* 210/*
204 * Pull PCA9532 GPIO #8 low to power off the machine. 211 * Pull PCA9532 GPIO #8 low to power off the machine.
@@ -248,6 +255,9 @@ static void __init n2100_init_machine(void)
248 platform_device_register(&iop3xx_dma_0_channel); 255 platform_device_register(&iop3xx_dma_0_channel);
249 platform_device_register(&iop3xx_dma_1_channel); 256 platform_device_register(&iop3xx_dma_1_channel);
250 257
258 i2c_register_board_info(0, n2100_i2c_devices,
259 ARRAY_SIZE(n2100_i2c_devices));
260
251 pm_power_off = n2100_power_off; 261 pm_power_off = n2100_power_off;
252 262
253 init_timer(&power_button_poll_timer); 263 init_timer(&power_button_poll_timer);