Gitweb: http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=e28067d533f1c6fc8c5e31495994f1c9bf7febe6 Commit: e28067d533f1c6fc8c5e31495994f1c9bf7febe6 Parent: 2bea80187f6218ed8b5c1e1280220b1c53d8dd05 Author: Rod Whitby <[EMAIL PROTECTED]> AuthorDate: Tue Jan 29 00:36:12 2008 +0100 Committer: Russell King <[EMAIL PROTECTED]> CommitDate: Mon Feb 4 13:15:24 2008 +0000
[ARM] 4772/2: ixp4xx: Register nslu2 rtc i2c_board_info 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 <[EMAIL PROTECTED]> Signed-off-by: Alessandro Zummo <[EMAIL PROTECTED]> Signed-off-by: Russell King <[EMAIL PROTECTED]> --- arch/arm/mach-ixp4xx/nslu2-setup.c | 10 ++++++++++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-ixp4xx/nslu2-setup.c b/arch/arm/mach-ixp4xx/nslu2-setup.c index 77277d2..16d091c 100644 --- a/arch/arm/mach-ixp4xx/nslu2-setup.c +++ b/arch/arm/mach-ixp4xx/nslu2-setup.c @@ -18,6 +18,7 @@ #include <linux/serial.h> #include <linux/serial_8250.h> #include <linux/leds.h> +#include <linux/i2c.h> #include <linux/i2c-gpio.h> #include <asm/mach-types.h> @@ -47,6 +48,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[] = { { @@ -183,6 +190,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 - To unsubscribe from this list: send the line "unsubscribe git-commits-head" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html