Skip to content

Commit

Permalink
I2C: OMAP: add rev to omap i2c platform data
Browse files Browse the repository at this point in the history
We need to pass the I2C IP revision from the hwmod class up
into the OMAP I2C driver, which does not have direct
access to it.

This adds a member to the platform data the OMAP I2C driver
does use already to hold the I2C IP revision.

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 b885308 commit 5c825ee
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions include/linux/i2c-omap.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@

struct omap_i2c_bus_platform_data {
u32 clkrate;
u32 rev;
void (*set_mpu_wkup_lat)(struct device *dev, long set);
int (*device_enable) (struct platform_device *pdev);
int (*device_shutdown) (struct platform_device *pdev);
Expand Down

0 comments on commit 5c825ee

Please sign in to comment.