1 From 0b7237ceb7d55199e4e4b5e44ac87f7e32cf25e6 Mon Sep 17 00:00:00 2001
2 From: Rod Whitby <rod@whitby.id.au>
3 Date: Sun, 27 Jan 2008 10:34:58 +1030
4 Subject: [PATCH] ixp4xx: Register nas100d rtc i2c_board_info
6 Register the i2c board info related to the RTC chip on the nas100d
7 board to allow it to be found automatically on boot.
9 Signed-off-by: Rod Whitby <rod@whitby.id.au>
10 Signed-off-by: Alessandro Zummo <a.zummo@towertech.it>
12 arch/arm/mach-ixp4xx/nas100d-setup.c | 10 ++++++++++
13 1 files changed, 10 insertions(+), 0 deletions(-)
15 diff --git a/arch/arm/mach-ixp4xx/nas100d-setup.c b/arch/arm/mach-ixp4xx/nas100d-setup.c
16 index 36421b3..117489a 100644
17 --- a/arch/arm/mach-ixp4xx/nas100d-setup.c
18 +++ b/arch/arm/mach-ixp4xx/nas100d-setup.c
20 #include <linux/serial.h>
21 #include <linux/serial_8250.h>
22 #include <linux/leds.h>
23 +#include <linux/i2c.h>
25 #include <asm/mach-types.h>
26 #include <asm/mach/arch.h>
27 @@ -39,6 +40,12 @@ static struct platform_device nas100d_flash = {
28 .resource = &nas100d_flash_resource,
31 +static struct i2c_board_info __initdata nas100d_i2c_board_info [] = {
33 + I2C_BOARD_INFO("rtc-pcf8563", 0x51),
37 #ifdef CONFIG_LEDS_IXP4XX
38 static struct resource nas100d_led_resources[] = {
40 @@ -177,6 +184,9 @@ static void __init nas100d_init(void)
42 pm_power_off = nas100d_power_off;
44 + i2c_register_board_info(0, nas100d_i2c_board_info,
45 + ARRAY_SIZE(nas100d_i2c_board_info));
48 * This is only useful on a modified machine, but it is valuable
49 * to have it first in order to see debug messages, and so that