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

Commit ff35e8b1 authored by Toshiharu Okada's avatar Toshiharu Okada Committed by Ben Dooks
Browse files

i2c-eg20t: modified the setting of transfer rate.



This patch modified the setting value of
I2C Bus Transfer Rate Setting Counter regisrer.

Signed-off-by: default avatarToshiharu Okada <toshiharu-linux@dsn.okisemi.com>
Signed-off-by: default avatarBen Dooks <ben-linux@fluff.org>
parent 07e8a51f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -243,7 +243,7 @@ static void pch_i2c_init(struct i2c_algo_pch_data *adap)
	if (pch_clk > PCH_MAX_CLK)
		pch_clk = 62500;

	pch_i2cbc = (pch_clk + (pch_i2c_speed * 4)) / pch_i2c_speed * 8;
	pch_i2cbc = (pch_clk + (pch_i2c_speed * 4)) / (pch_i2c_speed * 8);
	/* Set transfer speed in I2CBC */
	iowrite32(pch_i2cbc, p + PCH_I2CBC);