]> git.dujemihanovic.xyz Git - u-boot.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)
commite53979cd34320c67c8d0213618c2999a45e0d578
tree9aceadc42cc4fa5aa2d80a5b097eec124b4bfe5b
parent1d1f98c8eed7bb4792300e655c2cb70136928f74
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