PM / devfreq: rockchip-dfi: make register stride SoC specific
authorSascha Hauer <s.hauer@pengutronix.de>
Wed, 18 Oct 2023 06:17:05 +0000 (08:17 +0200)
committerChanwoo Choi <cw00.choi@samsung.com>
Thu, 19 Oct 2023 12:17:10 +0000 (21:17 +0900)
commitd1d0b3fe95d888f1ae82a0cf6a594fa0c3cbfa79
tree10fae6ac2a950c7f81f945f044662d749e997606
parent4d586b5724d3233a73603000de7b8a035b493138
PM / devfreq: rockchip-dfi: make register stride SoC specific

The currently supported RK3399 has a stride of 20 between the channel
specific registers. Upcoming RK3588 has a different stride, so put
the stride into driver data to make it configurable.
While at it convert decimal 20 to hex 0x14 for consistency with RK3588
which has a register stride 0x4000 and we want to write that in hex
as well.

Link: https://lore.kernel.org/all/20231018061714.3553817-18-s.hauer@pengutronix.de/
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
drivers/devfreq/event/rockchip-dfi.c