i2c: rk3x: Adjust mask/value offset for i2c2 on rv1126
authorTim Lunn <tim@feathertop.org>
Sun, 3 Dec 2023 12:39:59 +0000 (23:39 +1100)
committerWolfram Sang <wsa@kernel.org>
Thu, 18 Jan 2024 20:10:42 +0000 (21:10 +0100)
commit92a85b7c6262f19c65a1c115cf15f411ba65a57c
treeeaa92c384e1c924e9710f0123af7439c5160a6ac
parent187432b82173c86e0450d0e3d516b415ab2455f8
i2c: rk3x: Adjust mask/value offset for i2c2 on rv1126

Rockchip RV1126 is using old style i2c controller, the i2c2
bus uses a non-sequential offset in the grf register for the
mask/value bits for this bus.

This patch fixes i2c2 bus on rv1126 SoCs.

Signed-off-by: Tim Lunn <tim@feathertop.org>
Acked-by: Heiko Stuebner <heiko@sntech.de>
Reviewed-by: Andi Shyti <andi.shyti@kernel.org>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
drivers/i2c/busses/i2c-rk3x.c