Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 272424
b: refs/heads/master
c: a129557
h: refs/heads/master
v: v3
  • Loading branch information
Andy Green authored and Ben Dooks committed Oct 29, 2011
1 parent 2135a89 commit cd62d45
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 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: d177e5ddb83a4bc518270e705e60ccc5a5aa6410
refs/heads/master: a1295577773d9756b65972be7b462e4382996d08
10 changes: 5 additions & 5 deletions trunk/drivers/i2c/busses/i2c-omap.c
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ struct omap_i2c_dev {
u16 errata;
};

static const u8 reg_map[] = {
static const u8 reg_map_ip_v1[] = {
[OMAP_I2C_REV_REG] = 0x00,
[OMAP_I2C_IE_REG] = 0x01,
[OMAP_I2C_STAT_REG] = 0x02,
Expand All @@ -226,7 +226,7 @@ static const u8 reg_map[] = {
[OMAP_I2C_BUFSTAT_REG] = 0x10,
};

static const u8 omap4_reg_map[] = {
static const u8 reg_map_ip_v2[] = {
[OMAP_I2C_REV_REG] = 0x04,
[OMAP_I2C_IE_REG] = 0x2c,
[OMAP_I2C_STAT_REG] = 0x28,
Expand Down Expand Up @@ -1035,10 +1035,10 @@ omap_i2c_probe(struct platform_device *pdev)
else
dev->reg_shift = 2;

if (cpu_is_omap44xx())
dev->regs = (u8 *) omap4_reg_map;
if (pdata->rev == OMAP_I2C_IP_VERSION_2)
dev->regs = (u8 *)reg_map_ip_v2;
else
dev->regs = (u8 *) reg_map;
dev->regs = (u8 *)reg_map_ip_v1;

pm_runtime_enable(&pdev->dev);
omap_i2c_unidle(dev);
Expand Down

0 comments on commit cd62d45

Please sign in to comment.