From d4ef1ee0daf96e42bf93421960eaded71e189712 Mon Sep 17 00:00:00 2001 From: Rod Whitby Date: Tue, 29 Jan 2008 10:07:29 +1030 Subject: ixp4xx: Register nas100d rtc i2c_board_info (Patch #4773) Register the i2c board info related to the RTC chip on the nas100d board to allow it to be found automatically on boot. Signed-off-by: Rod Whitby Signed-off-by: Alessandro Zummo PATCH FOLLOWS KernelVersion: 2.6.24-git5 diff --git a/arch/arm/mach-ixp4xx/nas100d-setup.c b/arch/arm/mach-ixp4xx/nas100d-setup.c index b0884c2..09f75b9 100644 --- a/arch/arm/mach-ixp4xx/nas100d-setup.c +++ b/arch/arm/mach-ixp4xx/nas100d-setup.c @@ -17,6 +17,7 @@ #include #include #include +#include #include #include @@ -41,6 +42,12 @@ static struct platform_device nas100d_flash = { .resource = &nas100d_flash_resource, }; +static struct i2c_board_info __initdata nas100d_i2c_board_info [] = { + { + I2C_BOARD_INFO("rtc-pcf8563", 0x51), + }, +}; + #ifdef CONFIG_LEDS_IXP4XX static struct resource nas100d_led_resources[] = { { @@ -181,6 +188,9 @@ static void __init nas100d_init(void) pm_power_off = nas100d_power_off; + i2c_register_board_info(0, nas100d_i2c_board_info, + ARRAY_SIZE(nas100d_i2c_board_info)); + /* * This is only useful on a modified machine, but it is valuable * to have it first in order to see debug messages, and so that -- 1.5.2.5