[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 <rod@whitby.id.au>
Signed-off-by: Alessandro Zummo <a.zummo@towertech.it>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>

authored by

Rod Whitby and committed by
Russell King
e28067d5 2bea8018

+10
+10
arch/arm/mach-ixp4xx/nslu2-setup.c
··· 18 18 #include <linux/serial.h> 19 19 #include <linux/serial_8250.h> 20 20 #include <linux/leds.h> 21 + #include <linux/i2c.h> 21 22 #include <linux/i2c-gpio.h> 22 23 23 24 #include <asm/mach-types.h> ··· 46 45 static struct i2c_gpio_platform_data nslu2_i2c_gpio_data = { 47 46 .sda_pin = NSLU2_SDA_PIN, 48 47 .scl_pin = NSLU2_SCL_PIN, 48 + }; 49 + 50 + static struct i2c_board_info __initdata nslu2_i2c_board_info [] = { 51 + { 52 + I2C_BOARD_INFO("rtc-x1205", 0x6f), 53 + }, 49 54 }; 50 55 51 56 #ifdef CONFIG_LEDS_IXP4XX ··· 189 182 IXP4XX_EXP_BUS_BASE(0) + ixp4xx_exp_bus_size - 1; 190 183 191 184 pm_power_off = nslu2_power_off; 185 + 186 + i2c_register_board_info(0, nslu2_i2c_board_info, 187 + ARRAY_SIZE(nslu2_i2c_board_info)); 192 188 193 189 /* 194 190 * This is only useful on a modified machine, but it is valuable