Skip to content

Commit

Permalink
I2C: OMAP2+: Pass hwmod rev knowledge via platform_data when i2c bus …
Browse files Browse the repository at this point in the history
…added

Mark each OMAP I2C bus with the hwmod's knowledge of which I2C
IP version is in the chip we're running on.

Cc: patches@linaro.org
Reported-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Andy Green <andy.green@linaro.org>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Acked-by: Ben Dooks <ben-linux@fluff.org>
Signed-off-by: Kevin Hilman <khilman@ti.com>
  • Loading branch information
Andy Green authored and Ben Dooks committed Oct 29, 2011
1 parent 67b90c6 commit d177e5d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions arch/arm/plat-omap/i2c.c
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,12 @@ static inline int omap2_i2c_add_bus(int bus_id)
}

pdata = &i2c_pdata[bus_id - 1];
/*
* pass the hwmod class's CPU-specific knowledge of I2C IP revision in
* use up to the OMAP I2C driver via platform data
*/
pdata->rev = oh->class->rev;

/*
* When waiting for completion of a i2c transfer, we need to
* set a wake up latency constraint for the MPU. This is to
Expand Down

0 comments on commit d177e5d

Please sign in to comment.