From 3fe717bfece771ee8d9b93f3c90dc9302b6e2544 Mon Sep 17 00:00:00 2001 From: Martin Michlmayr Date: Tue, 17 Jul 2007 04:04:57 -0700 Subject: [PATCH] --- yaml --- r: 60852 b: refs/heads/master c: c00593f6f816e5cfa6d193a2561ca77541f71424 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/arch/arm/mach-iop32x/n2100.c | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index 857efb7b4a3a..ae8ffb7a9272 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: d815461c7a73903d0a926b3cace6f69e144c54a3 +refs/heads/master: c00593f6f816e5cfa6d193a2561ca77541f71424 diff --git a/trunk/arch/arm/mach-iop32x/n2100.c b/trunk/arch/arm/mach-iop32x/n2100.c index 390a97d39e5a..1873bd8cd1b2 100644 --- a/trunk/arch/arm/mach-iop32x/n2100.c +++ b/trunk/arch/arm/mach-iop32x/n2100.c @@ -25,6 +25,7 @@ #include #include #include +#include #include #include #include @@ -199,6 +200,12 @@ static struct platform_device n2100_serial_device = { .resource = &n2100_uart_resource, }; +static struct i2c_board_info __initdata n2100_i2c_devices[] = { + { + I2C_BOARD_INFO("rtc-rs5c372", 0x32), + .type = "rs5c372b", + }, +}; /* * Pull PCA9532 GPIO #8 low to power off the machine. @@ -248,6 +255,9 @@ static void __init n2100_init_machine(void) platform_device_register(&iop3xx_dma_0_channel); platform_device_register(&iop3xx_dma_1_channel); + i2c_register_board_info(0, n2100_i2c_devices, + ARRAY_SIZE(n2100_i2c_devices)); + pm_power_off = n2100_power_off; init_timer(&power_button_poll_timer);