ARM: imx53_loco: add i2c device support
authorRichard Zhao <richard.zhao@freescale.com>
Fri, 18 Feb 2011 04:36:16 +0000 (12:36 +0800)
committerSascha Hauer <s.hauer@pengutronix.de>
Fri, 18 Feb 2011 10:01:06 +0000 (11:01 +0100)
Signed-off-by: Richard Zhao <richard.zhao@freescale.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
arch/arm/mach-mx5/Kconfig
arch/arm/mach-mx5/board-mx53_loco.c

index 6466d7389c31a65782f409119267a0fb12d39da9..f065a0d8d93401d4489ee4db7d3b1e5993b9975c 100644 (file)
@@ -160,6 +160,7 @@ config MACH_MX53_LOCO
        bool "Support MX53 LOCO platforms"
        select SOC_IMX53
        select IMX_HAVE_PLATFORM_IMX2_WDT
+       select IMX_HAVE_PLATFORM_IMX_I2C
        select IMX_HAVE_PLATFORM_IMX_UART
        help
          Include support for MX53 LOCO platform. This includes specific
index 3d749ada4eb6f0ecfa698144a4c27bb0d167d91e..160899e6d6ca80a5a3e1df08a56d58365f50b4f6 100644 (file)
@@ -199,6 +199,10 @@ static struct fec_platform_data mx53_loco_fec_data = {
        .phy = PHY_INTERFACE_MODE_RMII,
 };
 
+static const struct imxi2c_platform_data mx53_loco_i2c_data __initconst = {
+       .bitrate = 100000,
+};
+
 static void __init mx53_loco_board_init(void)
 {
        mxc_iomux_v3_setup_multiple_pads(mx53_loco_pads,
@@ -207,6 +211,8 @@ static void __init mx53_loco_board_init(void)
        mx53_loco_fec_reset();
        imx53_add_fec(&mx53_loco_fec_data);
        imx53_add_imx2_wdt(0, NULL);
+       imx53_add_imx_i2c(0, &mx53_loco_i2c_data);
+       imx53_add_imx_i2c(1, &mx53_loco_i2c_data);
 }
 
 static void __init mx53_loco_timer_init(void)