[ARM] 4774/2: ixp4xx: Register dsmg600 rtc i2c_board_info

Register the i2c board info related to the RTC chip on the dsmg600
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
a9a424ce 400d8231

+10
+10
arch/arm/mach-ixp4xx/dsmg600-setup.c
··· 14 14 #include <linux/kernel.h> 15 15 #include <linux/serial.h> 16 16 #include <linux/serial_8250.h> 17 + #include <linux/i2c.h> 17 18 #include <linux/i2c-gpio.h> 18 19 19 20 #include <asm/mach-types.h> ··· 49 48 .id = 0, 50 49 .dev = { 51 50 .platform_data = &dsmg600_i2c_gpio_data, 51 + }, 52 + }; 53 + 54 + static struct i2c_board_info __initdata dsmg600_i2c_board_info [] = { 55 + { 56 + I2C_BOARD_INFO("rtc-pcf8563", 0x51), 52 57 }, 53 58 }; 54 59 ··· 164 157 IXP4XX_EXP_BUS_BASE(0) + ixp4xx_exp_bus_size - 1; 165 158 166 159 pm_power_off = dsmg600_power_off; 160 + 161 + i2c_register_board_info(0, dsmg600_i2c_board_info, 162 + ARRAY_SIZE(dsmg600_i2c_board_info)); 167 163 168 164 /* The UART is required on the DSM-G600 (Redboot cannot use the 169 165 * NIC) -- do it here so that it does *not* get removed if