Re: [PATCH v2 06/19] i2c: designware_i2c: Use an accurate bus clock instead of MHz

2020-01-15 Thread Heiko Schocher
Hello Simon, Am 03.01.2020 um 23:26 schrieb Simon Glass: At present the driver uses an approximation for the bus clock, e.g. 166MHz instead of 166 2/3 MHz. This can result in small errors in the resulting I2C speed, perhaps 0.5% or so. Adjust the existing code to start from the accurate figure

[PATCH v2 06/19] i2c: designware_i2c: Use an accurate bus clock instead of MHz

2020-01-04 Thread Simon Glass
At present the driver uses an approximation for the bus clock, e.g. 166MHz instead of 166 2/3 MHz. This can result in small errors in the resulting I2C speed, perhaps 0.5% or so. Adjust the existing code to start from the accurate figure, even if later rounding reduces this accuracy. Update the