]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[ARM] 5371/1: ep93xx: add i2c device to edb9307a
authorHartley Sweeten <hartleys@visionengravers.com>
Mon, 26 Jan 2009 16:24:51 +0000 (17:24 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Tue, 10 Feb 2009 11:24:20 +0000 (11:24 +0000)
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>
arch/arm/mach-ep93xx/edb9307a.c

index 5b5c22b681beb8436971329c11b46ee5a8e04c55..6171167d3315c7ddec6c3ece1667074526c89fc1 100644 (file)
@@ -48,12 +48,24 @@ static struct ep93xx_eth_data edb9307a_eth_data = {
        .phy_id         = 1,
 };
 
+static struct i2c_board_info __initdata edb9307a_i2c_data[] = {
+       {
+               /* On-board battery backed RTC */
+               I2C_BOARD_INFO("isl1208", 0x6f),
+       },
+       /*
+        * The I2C signals are also routed to the Expansion Connector (J4)
+        */
+};
+
 static void __init edb9307a_init_machine(void)
 {
        ep93xx_init_devices();
        platform_device_register(&edb9307a_flash);
 
        ep93xx_register_eth(&edb9307a_eth_data, 1);
+
+       ep93xx_init_i2c(edb9307a_i2c_data, ARRAY_SIZE(edb9307a_i2c_data));
 }
 
 MACHINE_START(EDB9307A, "Cirrus Logic EDB9307A Evaluation Board")