Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5c825ee2 authored by Andy Green's avatar Andy Green Committed by Ben Dooks
Browse files

I2C: OMAP: add rev to omap i2c platform data



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: default avatarPeter Maydell <peter.maydell@linaro.org>
Signed-off-by: default avatarAndy Green <andy.green@linaro.org>
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
Acked-by: default avatarBen Dooks <ben-linux@fluff.org>
Signed-off-by: default avatarKevin Hilman <khilman@ti.com>
parent b8853088
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -32,6 +32,7 @@


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