From 88721db37ead2212a54c1392e2e65bae78d2604b Mon Sep 17 00:00:00 2001 From: Rod Whitby Date: Tue, 29 Jan 2008 10:05:48 +1030 Subject: ixp4xx: Register nslu2 rtc i2c_board_info (Patch #4772) Register the i2c board info related to the RTC chip on the nslu2 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/nslu2-setup.c b/arch/arm/mach-ixp4xx/nslu2-setup.c index 332a066..ebeb566 100644 --- a/arch/arm/mach-ixp4xx/nslu2-setup.c +++ b/arch/arm/mach-ixp4xx/nslu2-setup.c @@ -19,6 +19,7 @@ #include #include #include +#include #include #include @@ -49,6 +50,12 @@ static struct i2c_gpio_platform_data nslu2_i2c_gpio_data = { .scl_pin = NSLU2_SCL_PIN, }; +static struct i2c_board_info __initdata nslu2_i2c_board_info [] = { + { + I2C_BOARD_INFO("rtc-x1205", 0x6f), + }, +}; + #ifdef CONFIG_LEDS_IXP4XX static struct resource nslu2_led_resources[] = { { @@ -207,6 +214,9 @@ static void __init nslu2_init(void) pm_power_off = nslu2_power_off; + i2c_register_board_info(0, nslu2_i2c_board_info, + ARRAY_SIZE(nslu2_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