diff options
-rw-r--r-- | drivers/i2c/busses/i2c-tegra.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/i2c/busses/i2c-tegra.c b/drivers/i2c/busses/i2c-tegra.c index b4ab39b741eb..5f1b92c74bd9 100644 --- a/drivers/i2c/busses/i2c-tegra.c +++ b/drivers/i2c/busses/i2c-tegra.c | |||
@@ -330,6 +330,11 @@ static int tegra_i2c_init(struct tegra_i2c_dev *i2c_dev) | |||
330 | i2c_writel(i2c_dev, 0, I2C_INT_MASK); | 330 | i2c_writel(i2c_dev, 0, I2C_INT_MASK); |
331 | clk_set_rate(i2c_dev->clk, i2c_dev->bus_clk_rate * 8); | 331 | clk_set_rate(i2c_dev->clk, i2c_dev->bus_clk_rate * 8); |
332 | 332 | ||
333 | if (!i2c_dev->is_dvc) { | ||
334 | u32 sl_cfg = i2c_readl(i2c_dev, I2C_SL_CNFG); | ||
335 | i2c_writel(i2c_dev, sl_cfg | I2C_SL_CNFG_NEWSL, I2C_SL_CNFG); | ||
336 | } | ||
337 | |||
333 | val = 7 << I2C_FIFO_CONTROL_TX_TRIG_SHIFT | | 338 | val = 7 << I2C_FIFO_CONTROL_TX_TRIG_SHIFT | |
334 | 0 << I2C_FIFO_CONTROL_RX_TRIG_SHIFT; | 339 | 0 << I2C_FIFO_CONTROL_RX_TRIG_SHIFT; |
335 | i2c_writel(i2c_dev, val, I2C_FIFO_CONTROL); | 340 | i2c_writel(i2c_dev, val, I2C_FIFO_CONTROL); |