summaryrefslogtreecommitdiff
path: root/drivers/Kconfig
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2020-01-23 11:48:14 -0700
committerHeiko Schocher <hs@denx.de>2020-01-27 07:21:51 +0100
commite71b6f6622d6a3380d866943799f36e473a3cd9b (patch)
treefa9de3073f2cafdc153aba4e70adbe024ed8352f /drivers/Kconfig
parent31adb873e7a8680f8aac8ba259717b3f2265872e (diff)
i2c: designware_i2c: Rewrite timing calculation
At present the driver can end up with timing parameters which are slightly faster than those expected. It is possible to optimise the parameters to get the best possible result. Create a new function to handle the timing calculation. This uses a table of defaults for each speed mode rather than writing it in code. The function works by calculating the 'period' of each bit on the bus in terms of the input clock to the controller (IC_CLK). It makes sure that the constraints are met and that the different components of that period add up correctly. This code was taken from coreboot which has ended up with this same driver, but now in a much-different form. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Heiko Schocher <hs@denx.de>
Diffstat (limited to 'drivers/Kconfig')
0 files changed, 0 insertions, 0 deletions