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

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

I2C: OMAP2+: Pass hwmod rev knowledge via platform_data when i2c bus 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: 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 67b90c67
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -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