diff options
Diffstat (limited to 'drivers/i2c/busses')
-rw-r--r-- | drivers/i2c/busses/i2c-tegra.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/i2c/busses/i2c-tegra.c b/drivers/i2c/busses/i2c-tegra.c index 6b69b7007f00..4d9319665e32 100644 --- a/drivers/i2c/busses/i2c-tegra.c +++ b/drivers/i2c/busses/i2c-tegra.c | |||
@@ -35,6 +35,7 @@ | |||
35 | #define BYTES_PER_FIFO_WORD 4 | 35 | #define BYTES_PER_FIFO_WORD 4 |
36 | 36 | ||
37 | #define I2C_CNFG 0x000 | 37 | #define I2C_CNFG 0x000 |
38 | #define I2C_CNFG_DEBOUNCE_CNT_SHIFT 12 | ||
38 | #define I2C_CNFG_PACKET_MODE_EN (1<<10) | 39 | #define I2C_CNFG_PACKET_MODE_EN (1<<10) |
39 | #define I2C_CNFG_NEW_MASTER_FSM (1<<11) | 40 | #define I2C_CNFG_NEW_MASTER_FSM (1<<11) |
40 | #define I2C_STATUS 0x01C | 41 | #define I2C_STATUS 0x01C |
@@ -328,7 +329,8 @@ static int tegra_i2c_init(struct tegra_i2c_dev *i2c_dev) | |||
328 | if (i2c_dev->is_dvc) | 329 | if (i2c_dev->is_dvc) |
329 | tegra_dvc_init(i2c_dev); | 330 | tegra_dvc_init(i2c_dev); |
330 | 331 | ||
331 | val = I2C_CNFG_NEW_MASTER_FSM | I2C_CNFG_PACKET_MODE_EN; | 332 | val = I2C_CNFG_NEW_MASTER_FSM | I2C_CNFG_PACKET_MODE_EN | |
333 | (0x2 << I2C_CNFG_DEBOUNCE_CNT_SHIFT); | ||
332 | i2c_writel(i2c_dev, val, I2C_CNFG); | 334 | i2c_writel(i2c_dev, val, I2C_CNFG); |
333 | i2c_writel(i2c_dev, 0, I2C_INT_MASK); | 335 | i2c_writel(i2c_dev, 0, I2C_INT_MASK); |
334 | clk_set_rate(i2c_dev->clk, i2c_dev->bus_clk_rate * 8); | 336 | clk_set_rate(i2c_dev->clk, i2c_dev->bus_clk_rate * 8); |