]> git.baikalelectronics.ru Git - uboot.git/commit
i2c: designware_i2c: Separate out the speed calculation
authorSimon Glass <sjg@chromium.org>
Thu, 23 Jan 2020 18:48:25 +0000 (11:48 -0700)
committerHeiko Schocher <hs@denx.de>
Mon, 27 Jan 2020 06:24:44 +0000 (07:24 +0100)
commitb4e7315386a52ad7cdb3dda1e544ecb2d69e99cc
treeb85035e58694d57baa9ad2859c60c0ce3087e9c2
parentdf86bc45ed3e77a1964208661d6b6bb0220cdeb0
i2c: designware_i2c: Separate out the speed calculation

We want to be able to calculate the speed separately from actually setting
the speed, so we can generate the required ACPI tables. Split out the
calculation into its own function.

Drop the double underscore on __dw_i2c_set_bus_speed while we are here.
That is reserved for compiler internals.

Signed-off-by: Simon Glass <sjg@chromium.org>
drivers/i2c/designware_i2c.c
drivers/i2c/designware_i2c.h