]> www.infradead.org Git - users/jedix/linux-maple.git/commit
i2c: nomadik: support >=1MHz speed modes
authorThéo Lebrun <theo.lebrun@bootlin.com>
Wed, 9 Oct 2024 14:01:12 +0000 (16:01 +0200)
committerWolfram Sang <wsa+renesas@sang-engineering.com>
Sun, 24 Nov 2024 15:03:51 +0000 (16:03 +0100)
commit4fb1b640d68dba271e6b580582ac5c1381c6157a
tree389e827225fe57fa7d2bbfcc87b536af758824d6
parent16674c8c488ec40cbf15806658a22a68bb15a810
i2c: nomadik: support >=1MHz speed modes

 - BRCR value must go into the BRCR1 field when in high-speed mode.
   It goes into BRCR2 otherwise.

 - Remove fallback to standard mode if priv->sm > I2C_FREQ_MODE_FAST.

 - Set SM properly in probe; previously it only checked STANDARD versus
   FAST. Now we set STANDARD, FAST, FAST_PLUS or HIGH_SPEED.

 - Remove all comment sections saying we only support low-speeds.

Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Théo Lebrun <theo.lebrun@bootlin.com>
Signed-off-by: Andi Shyti <andi.shyti@kernel.org>
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
drivers/i2c/busses/i2c-nomadik.c