]> git.ipfire.org Git - thirdparty/linux.git/commit
i2c: rcar: add FastMode+ support for Gen4
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Thu, 14 Dec 2023 07:43:58 +0000 (08:43 +0100)
committerWolfram Sang <wsa@kernel.org>
Thu, 18 Jan 2024 20:10:42 +0000 (21:10 +0100)
commitd0520eb3ed54df89eb5961ec3b88634f313123f2
tree2140b3acb9130806e616442124e4844f8d803be1
parent2b523c46e81ebd621515ab47117f95de197dfcbf
i2c: rcar: add FastMode+ support for Gen4

To support FM+, we mainly need to turn the SMD constant into a parameter
and set it accordingly. That also means we can finally fix SMD to our
needs instead of bailing out. A sanity check for SMD then becomes a
sanity check for 'x == 0'. After all that, activating the enable bit for
FM+ is all we need to do. Tested with a Renesas Falcon board using R-Car
V3U.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Andi Shyti <andi.shyti@kernel.org>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
drivers/i2c/busses/i2c-rcar.c