ARM: MX3: add I2C support for lilly-1131
authorDaniel Mack <daniel@caiaq.de>
Wed, 20 May 2009 17:54:39 +0000 (19:54 +0200)
committerSascha Hauer <s.hauer@pengutronix.de>
Tue, 26 May 2009 10:31:55 +0000 (12:31 +0200)
Signed-off-by: Daniel Mack <daniel@caiaq.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
arch/arm/mach-mx3/mx31lilly.c

index f15a2eb7bd8b212e4b7b406f9368712655d7cf14..6ab2f163cb95c8978f093b6aa994a58dbb1fa051 100644 (file)
@@ -108,6 +108,7 @@ static struct platform_device physmap_flash_device = {
 static struct platform_device *devices[] __initdata = {
        &smsc91x_device,
        &physmap_flash_device,
+       &mxc_i2c_device1,
 };
 
 static int mx31lilly_baseboard;
@@ -127,6 +128,8 @@ static void __init mx31lilly_board_init(void)
        }
 
        mxc_iomux_alloc_pin(MX31_PIN_CS4__CS4, "Ethernet CS");
+       mxc_iomux_alloc_pin(MX31_PIN_CSPI2_MOSI__SCL, "I2C SCL");
+       mxc_iomux_alloc_pin(MX31_PIN_CSPI2_MISO__SDA, "I2C SDA");
 
        platform_add_devices(devices, ARRAY_SIZE(devices));
 }