Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 288907
b: refs/heads/master
c: d3f862a
h: refs/heads/master
i:
  288905: 6e94813
  288903: e5be02c
v: v3
  • Loading branch information
Julian Andres Klode authored and Greg Kroah-Hartman committed Jan 31, 2012
1 parent 89189a6 commit cf7f952
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 36b30d6138f4677514aca35ab76c20c1604baaad
refs/heads/master: d3f862aec400dd831a4bdbea107fd85419bddab1
6 changes: 3 additions & 3 deletions trunk/drivers/staging/nvec/nvec.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
#define I2C_CNFG_DEBOUNCE_CNT_SHIFT 12

#define I2C_SL_CNFG 0x20
#define I2C_SL_NEWL (1<<2)
#define I2C_SL_NEWSL (1<<2)
#define I2C_SL_NACK (1<<1)
#define I2C_SL_RESP (1<<0)
#define I2C_SL_IRQ (1<<3)
Expand Down Expand Up @@ -687,7 +687,7 @@ static void tegra_init_i2c_slave(struct nvec_chip *nvec)

clk_set_rate(nvec->i2c_clk, 8 * 80000);

writel(I2C_SL_NEWL, nvec->base + I2C_SL_CNFG);
writel(I2C_SL_NEWSL, nvec->base + I2C_SL_CNFG);
writel(0x1E, nvec->base + I2C_SL_DELAY_COUNT);

writel(nvec->i2c_addr>>1, nvec->base + I2C_SL_ADDR1);
Expand All @@ -701,7 +701,7 @@ static void tegra_init_i2c_slave(struct nvec_chip *nvec)
static void nvec_disable_i2c_slave(struct nvec_chip *nvec)
{
disable_irq(nvec->irq);
writel(I2C_SL_NEWL | I2C_SL_NACK, nvec->base + I2C_SL_CNFG);
writel(I2C_SL_NEWSL | I2C_SL_NACK, nvec->base + I2C_SL_CNFG);
clk_disable(nvec->i2c_clk);
}

Expand Down

0 comments on commit cf7f952

Please sign in to comment.