rockchip: rk3288: syscon_rk3288: store syscon platdata in regmap
authorJohan Jonker <jbx6244@gmail.com>
Mon, 13 Mar 2023 00:30:57 +0000 (01:30 +0100)
committerKever Yang <kever.yang@rock-chips.com>
Sat, 6 May 2023 09:28:18 +0000 (17:28 +0800)
commit66a1d38c9891aa59fc896eacb4607cf5e953fe33
tree0f6a83b8b9987e07ba22ce5f3d2e582f3d098f6d
parent0fbb96964b8574ca8012b2022cd0e431977fd340
rockchip: rk3288: syscon_rk3288: store syscon platdata in regmap

The Rockchip SoC rk3288 has 2 types of device trees floating around.
A 64bit reg size when synced from Linux and a 32bit for U-boot.
A pre-probe function in the syscon class driver assumes only 32bit.
For other odd reg structures the regmap must be defined in the individual
syscon driver. Store rk3288 platdata in a regmap before pre-probe
during bind.

Signed-off-by: Johan Jonker <jbx6244@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Tested-by: Simon Glass <sjg@chromium.org>
arch/arm/mach-rockchip/rk3288/syscon_rk3288.c