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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 5 Feb 2024 20:14:33 +0000 (20:14 +0000)
commit250cfafb3e9d05838f0abfd6578d3922a5a2e4f2
tree227119b9ae517ba648e934f8574f8f91ef8efef7
parent5ea4007636b27800fa01555428aa9c198aeb5bf4
i2c: rk3x: Adjust mask/value offset for i2c2 on rv1126

[ Upstream commit 92a85b7c6262f19c65a1c115cf15f411ba65a57c ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/i2c/busses/i2c-rk3x.c