[ARM] 4773/2: ixp4xx: Register nas100d rtc i2c_board_info

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 <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
400d8231 e28067d5

+10
+10
arch/arm/mach-ixp4xx/nas100d-setup.c
··· 16 #include <linux/serial.h> 17 #include <linux/serial_8250.h> 18 #include <linux/leds.h> 19 #include <linux/i2c-gpio.h> 20 21 #include <asm/mach-types.h> ··· 38 .dev.platform_data = &nas100d_flash_data, 39 .num_resources = 1, 40 .resource = &nas100d_flash_resource, 41 }; 42 43 #ifdef CONFIG_LEDS_IXP4XX ··· 163 IXP4XX_EXP_BUS_BASE(0) + ixp4xx_exp_bus_size - 1; 164 165 pm_power_off = nas100d_power_off; 166 167 /* 168 * This is only useful on a modified machine, but it is valuable
··· 16 #include <linux/serial.h> 17 #include <linux/serial_8250.h> 18 #include <linux/leds.h> 19 + #include <linux/i2c.h> 20 #include <linux/i2c-gpio.h> 21 22 #include <asm/mach-types.h> ··· 37 .dev.platform_data = &nas100d_flash_data, 38 .num_resources = 1, 39 .resource = &nas100d_flash_resource, 40 + }; 41 + 42 + static struct i2c_board_info __initdata nas100d_i2c_board_info [] = { 43 + { 44 + I2C_BOARD_INFO("rtc-pcf8563", 0x51), 45 + }, 46 }; 47 48 #ifdef CONFIG_LEDS_IXP4XX ··· 156 IXP4XX_EXP_BUS_BASE(0) + ixp4xx_exp_bus_size - 1; 157 158 pm_power_off = nas100d_power_off; 159 + 160 + i2c_register_board_info(0, nas100d_i2c_board_info, 161 + ARRAY_SIZE(nas100d_i2c_board_info)); 162 163 /* 164 * This is only useful on a modified machine, but it is valuable