diff options
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-at91/board-csb337.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/arm/mach-at91/board-csb337.c b/arch/arm/mach-at91/board-csb337.c index e18a41e61f0c..dde089922e3b 100644 --- a/arch/arm/mach-at91/board-csb337.c +++ b/arch/arm/mach-at91/board-csb337.c | |||
@@ -23,6 +23,7 @@ | |||
23 | #include <linux/mm.h> | 23 | #include <linux/mm.h> |
24 | #include <linux/module.h> | 24 | #include <linux/module.h> |
25 | #include <linux/platform_device.h> | 25 | #include <linux/platform_device.h> |
26 | #include <linux/i2c.h> | ||
26 | #include <linux/spi/spi.h> | 27 | #include <linux/spi/spi.h> |
27 | #include <linux/mtd/physmap.h> | 28 | #include <linux/mtd/physmap.h> |
28 | 29 | ||
@@ -83,6 +84,13 @@ static struct at91_udc_data __initdata csb337_udc_data = { | |||
83 | .pullup_pin = AT91_PIN_PA24, | 84 | .pullup_pin = AT91_PIN_PA24, |
84 | }; | 85 | }; |
85 | 86 | ||
87 | static struct i2c_board_info __initdata csb337_i2c_devices[] = { | ||
88 | { I2C_BOARD_INFO("rtc-ds1307", 0x68), | ||
89 | .type = "ds1307", | ||
90 | }, | ||
91 | }; | ||
92 | |||
93 | |||
86 | static struct at91_cf_data __initdata csb337_cf_data = { | 94 | static struct at91_cf_data __initdata csb337_cf_data = { |
87 | /* | 95 | /* |
88 | * connector P4 on the CSB 337 mates to | 96 | * connector P4 on the CSB 337 mates to |
@@ -161,6 +169,8 @@ static void __init csb337_board_init(void) | |||
161 | at91_add_device_udc(&csb337_udc_data); | 169 | at91_add_device_udc(&csb337_udc_data); |
162 | /* I2C */ | 170 | /* I2C */ |
163 | at91_add_device_i2c(); | 171 | at91_add_device_i2c(); |
172 | i2c_register_board_info(0, csb337_i2c_devices, | ||
173 | ARRAY_SIZE(csb337_i2c_devices)); | ||
164 | /* Compact Flash */ | 174 | /* Compact Flash */ |
165 | at91_set_gpio_input(AT91_PIN_PB22, 1); /* IOIS16 */ | 175 | at91_set_gpio_input(AT91_PIN_PB22, 1); /* IOIS16 */ |
166 | at91_add_device_cf(&csb337_cf_data); | 176 | at91_add_device_cf(&csb337_cf_data); |