[ARM] pxa/magician: use I2C fast mode
authorPhilipp Zabel <philipp.zabel@gmail.com>
Fri, 17 Apr 2009 09:38:23 +0000 (11:38 +0200)
committerEric Miao <eric.y.miao@gmail.com>
Fri, 5 Jun 2009 02:39:16 +0000 (10:39 +0800)
Signed-off-by: Philipp Zabel <philipp.zabel@gmail.com>
Signed-off-by: Eric Miao <eric.miao@marvell.com>
arch/arm/mach-pxa/magician.c

index 5a9df973935d8ad04da97b61a276cc8dcd76ffc7..34046c8bfaf573305721098fcdf2ee0e12423538 100644 (file)
@@ -744,6 +744,14 @@ static struct platform_device strataflash = {
        },
 };
 
+/*
+ * I2C
+ */
+
+static struct i2c_pxa_platform_data i2c_info = {
+       .fast_mode = 1,
+};
+
 /*
  * Platform devices
  */
@@ -779,7 +787,7 @@ static void __init magician_init(void)
                pxa_set_ficp_info(&magician_ficp_info);
        }
        pxa27x_set_i2c_power_info(NULL);
-       pxa_set_i2c_info(NULL);
+       pxa_set_i2c_info(&i2c_info);
        pxa_set_mci_info(&magician_mci_info);
        pxa_set_ohci_info(&magician_ohci_info);