diff options
-rw-r--r-- | arch/arm/mach-ixp4xx/nas100d-setup.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/arm/mach-ixp4xx/nas100d-setup.c b/arch/arm/mach-ixp4xx/nas100d-setup.c index 213a4cea9117..dc782d06c2b1 100644 --- a/arch/arm/mach-ixp4xx/nas100d-setup.c +++ b/arch/arm/mach-ixp4xx/nas100d-setup.c | |||
@@ -16,6 +16,7 @@ | |||
16 | #include <linux/serial.h> | 16 | #include <linux/serial.h> |
17 | #include <linux/serial_8250.h> | 17 | #include <linux/serial_8250.h> |
18 | #include <linux/leds.h> | 18 | #include <linux/leds.h> |
19 | #include <linux/i2c.h> | ||
19 | #include <linux/i2c-gpio.h> | 20 | #include <linux/i2c-gpio.h> |
20 | 21 | ||
21 | #include <asm/mach-types.h> | 22 | #include <asm/mach-types.h> |
@@ -39,6 +40,12 @@ static struct platform_device nas100d_flash = { | |||
39 | .resource = &nas100d_flash_resource, | 40 | .resource = &nas100d_flash_resource, |
40 | }; | 41 | }; |
41 | 42 | ||
43 | static struct i2c_board_info __initdata nas100d_i2c_board_info [] = { | ||
44 | { | ||
45 | I2C_BOARD_INFO("rtc-pcf8563", 0x51), | ||
46 | }, | ||
47 | }; | ||
48 | |||
42 | #ifdef CONFIG_LEDS_IXP4XX | 49 | #ifdef CONFIG_LEDS_IXP4XX |
43 | static struct resource nas100d_led_resources[] = { | 50 | static struct resource nas100d_led_resources[] = { |
44 | { | 51 | { |
@@ -157,6 +164,9 @@ static void __init nas100d_init(void) | |||
157 | 164 | ||
158 | pm_power_off = nas100d_power_off; | 165 | pm_power_off = nas100d_power_off; |
159 | 166 | ||
167 | i2c_register_board_info(0, nas100d_i2c_board_info, | ||
168 | ARRAY_SIZE(nas100d_i2c_board_info)); | ||
169 | |||
160 | /* | 170 | /* |
161 | * This is only useful on a modified machine, but it is valuable | 171 | * This is only useful on a modified machine, but it is valuable |
162 | * to have it first in order to see debug messages, and so that | 172 | * to have it first in order to see debug messages, and so that |