]> git.baikalelectronics.ru Git - uboot.git/commit
core: remap: fix regmap_init_mem_plat() reg size handeling
authorJohan Jonker <jbx6244@gmail.com>
Mon, 13 Mar 2023 00:30:46 +0000 (01:30 +0100)
committerKever Yang <kever.yang@rock-chips.com>
Sat, 6 May 2023 09:28:18 +0000 (17:28 +0800)
commit85e148b8dc5e84b1bc9b9ba9b11afd7ddf87b8c0
treee09485fee0bd6e656e655a72c7efe7396a9d3218
parentba40a0c78948d4070fcb5e8a4fc68bc92e609bb3
core: remap: fix regmap_init_mem_plat() reg size handeling

The fdt_addr_t and phys_addr_t size have been decoupled.
A 32bit CPU can expect 64-bit data from the device tree parser,
so convert regmap_init_mem_plat() input to handel both. The
syscon class driver also makes use of the regmap_init_mem_plat()
function, but has no way of knowing the format of the
device-specific platform data. In case of odd reg structures other
then that the syscon class driver assumes the regmap must be
filled in the individual syscon driver before pre-probe.
Also fix the ARRAY_SIZE divider in the syscon class driver.

Signed-off-by: Johan Jonker <jbx6244@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/core/regmap.c
drivers/core/syscon-uclass.c
drivers/ram/rockchip/sdram_rk3066.c
drivers/ram/rockchip/sdram_rk3188.c
drivers/ram/rockchip/sdram_rk322x.c
drivers/ram/rockchip/sdram_rk3288.c
drivers/ram/rockchip/sdram_rk3328.c
drivers/ram/rockchip/sdram_rk3399.c
include/regmap.h
include/syscon.h