diff options
Diffstat (limited to 'arch/arm/mach-realview/core.c')
-rw-r--r-- | arch/arm/mach-realview/core.c | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/arch/arm/mach-realview/core.c b/arch/arm/mach-realview/core.c index bd2aa4f16141..27b48be73676 100644 --- a/arch/arm/mach-realview/core.c +++ b/arch/arm/mach-realview/core.c | |||
@@ -158,11 +158,25 @@ static struct resource realview_i2c_resource = { | |||
158 | 158 | ||
159 | struct platform_device realview_i2c_device = { | 159 | struct platform_device realview_i2c_device = { |
160 | .name = "versatile-i2c", | 160 | .name = "versatile-i2c", |
161 | .id = -1, | 161 | .id = 0, |
162 | .num_resources = 1, | 162 | .num_resources = 1, |
163 | .resource = &realview_i2c_resource, | 163 | .resource = &realview_i2c_resource, |
164 | }; | 164 | }; |
165 | 165 | ||
166 | static struct i2c_board_info realview_i2c_board_info[] = { | ||
167 | { | ||
168 | I2C_BOARD_INFO("rtc-ds1307", 0xd0 >> 1), | ||
169 | .type = "ds1338", | ||
170 | }, | ||
171 | }; | ||
172 | |||
173 | static int __init realview_i2c_init(void) | ||
174 | { | ||
175 | return i2c_register_board_info(0, realview_i2c_board_info, | ||
176 | ARRAY_SIZE(realview_i2c_board_info)); | ||
177 | } | ||
178 | arch_initcall(realview_i2c_init); | ||
179 | |||
166 | #define REALVIEW_SYSMCI (__io_address(REALVIEW_SYS_BASE) + REALVIEW_SYS_MCI_OFFSET) | 180 | #define REALVIEW_SYSMCI (__io_address(REALVIEW_SYS_BASE) + REALVIEW_SYS_MCI_OFFSET) |
167 | 181 | ||
168 | static unsigned int realview_mmc_status(struct device *dev) | 182 | static unsigned int realview_mmc_status(struct device *dev) |