diff options
author | Hartley Sweeten <hartleys@visionengravers.com> | 2009-01-26 11:24:51 -0500 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2009-02-10 06:24:20 -0500 |
commit | 93faee1d509926b844ad021e941a194e898f68dd (patch) | |
tree | 776e63fa3fab1f4d2401f0ca54dbe1aac2f32ae2 /arch/arm/mach-ep93xx | |
parent | e4cc8fca1c77905bce91b42a1372d4a73069a529 (diff) |
[ARM] 5371/1: ep93xx: add i2c device to edb9307a
Add the on-board rtc i2c device to the edb9307a platform init.
The EP93xx based EDB9307A dev board has an on-board ISL1208 RTC
connected to the I2C bus. Now that the core code supports the
I2C bus, this patch will add support for the device.
Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-ep93xx')
-rw-r--r-- | arch/arm/mach-ep93xx/edb9307a.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/arch/arm/mach-ep93xx/edb9307a.c b/arch/arm/mach-ep93xx/edb9307a.c index 5b5c22b681be..6171167d3315 100644 --- a/arch/arm/mach-ep93xx/edb9307a.c +++ b/arch/arm/mach-ep93xx/edb9307a.c | |||
@@ -48,12 +48,24 @@ static struct ep93xx_eth_data edb9307a_eth_data = { | |||
48 | .phy_id = 1, | 48 | .phy_id = 1, |
49 | }; | 49 | }; |
50 | 50 | ||
51 | static struct i2c_board_info __initdata edb9307a_i2c_data[] = { | ||
52 | { | ||
53 | /* On-board battery backed RTC */ | ||
54 | I2C_BOARD_INFO("isl1208", 0x6f), | ||
55 | }, | ||
56 | /* | ||
57 | * The I2C signals are also routed to the Expansion Connector (J4) | ||
58 | */ | ||
59 | }; | ||
60 | |||
51 | static void __init edb9307a_init_machine(void) | 61 | static void __init edb9307a_init_machine(void) |
52 | { | 62 | { |
53 | ep93xx_init_devices(); | 63 | ep93xx_init_devices(); |
54 | platform_device_register(&edb9307a_flash); | 64 | platform_device_register(&edb9307a_flash); |
55 | 65 | ||
56 | ep93xx_register_eth(&edb9307a_eth_data, 1); | 66 | ep93xx_register_eth(&edb9307a_eth_data, 1); |
67 | |||
68 | ep93xx_init_i2c(edb9307a_i2c_data, ARRAY_SIZE(edb9307a_i2c_data)); | ||
57 | } | 69 | } |
58 | 70 | ||
59 | MACHINE_START(EDB9307A, "Cirrus Logic EDB9307A Evaluation Board") | 71 | MACHINE_START(EDB9307A, "Cirrus Logic EDB9307A Evaluation Board") |