I2C: OMAP: add rev to omap i2c platform data
authorAndy Green <andy@warmcat.com>
Mon, 30 May 2011 14:43:05 +0000 (07:43 -0700)
committerBen Dooks <ben-linux@fluff.org>
Sat, 29 Oct 2011 08:37:07 +0000 (09:37 +0100)
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>
include/linux/i2c-omap.h

index 0aa0cbd676f773caae994e24c39df3f9241fb066..55eac259a451191375e9e2e326164b3d54d521a8 100644 (file)
@@ -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);