i2c-core: set default i2c clk 100k, at i2c smbus transfer
authorwdc <wdc@rock-chips.com>
Tue, 6 May 2014 06:28:16 +0000 (14:28 +0800)
committerwdc <wdc@rock-chips.com>
Tue, 6 May 2014 06:30:52 +0000 (14:30 +0800)
drivers/i2c/i2c-core.c

index 8ab40ff62b998343920799fb0e56ed65bae156e1..4aea35713aa18c0b81772f84bdfb0f81ef8eecc4 100755 (executable)
@@ -2126,11 +2126,17 @@ static s32 i2c_smbus_xfer_emulated(struct i2c_adapter *adapter, u16 addr,
                        .flags = flags,
                        .len = 1,
                        .buf = msgbuf0,
+                       #ifdef CONFIG_I2C_ROCKCHIP_COMPAT
+                       .scl_rate = 100 * 1000,
+                       #endif
                }, {
                        .addr = addr,
                        .flags = flags | I2C_M_RD,
                        .len = 0,
                        .buf = msgbuf1,
+                       #ifdef CONFIG_I2C_ROCKCHIP_COMPAT
+                       .scl_rate = 100 * 1000,
+                       #endif
                },
        };