]> git.baikalelectronics.ru Git - uboot.git/commit
i2c: rcar_i2c: Enable configuring SCL rise and fall times
authorAdam Ford <aford173@gmail.com>
Tue, 24 Aug 2021 14:10:31 +0000 (09:10 -0500)
committerHeiko Schocher <hs@denx.de>
Tue, 28 Sep 2021 04:34:14 +0000 (06:34 +0200)
commit601d827e41b85bc8a3426a0a324a5b395b7b3ae1
tree9aceadc42cc4fa5aa2d80a5b097eec124b4bfe5b
parent64165ddbe09f5ec3e7d5077282c01015be0f88a6
i2c: rcar_i2c: Enable configuring SCL rise and fall times

The Linux i2c driver supports i2c-scl-rising-time-ns,
and i2c-scl-falling-time-ns, but U-Boot uses hard-coded values
for these values.

Update the calculation by fetching them from the device tree if
present and use the previous values as the default if they are
missing.

Signed-off-by: Adam Ford <aford173@gmail.com>
Reviewed-by: Heiko Schocher <hs@denx.de>
drivers/i2c/rcar_i2c.c