i2c: designware: Support non-standard bus speeds
authorPhil Elwell <phil@raspberrypi.com>
Tue, 16 Jan 2024 16:03:14 +0000 (16:03 +0000)
committerDom Cobley <popcornmix@gmail.com>
Mon, 19 Feb 2024 11:35:34 +0000 (11:35 +0000)
commit77cbbf7ae2711c5bf8b5ea1bc1a1e0dc96900d22
tree342a9fc9b1d375738259327bbaf50ea7e1a2da46
parent2eec998d6ed491e0fb3872d9798a007eaadee4a1
i2c: designware: Support non-standard bus speeds

Add support for non-standard bus speeds by treating them as detuned
versions of the slowest standard speed not less than the requested
speed.

Signed-off-by: Phil Elwell <phil@raspberrypi.com>
drivers/i2c/busses/i2c-designware-common.c
drivers/i2c/busses/i2c-designware-core.h
drivers/i2c/busses/i2c-designware-master.c