]> git.dujemihanovic.xyz Git - u-boot.git/commit
rockchip: rk3588: add constants for some register address spaces
authorQuentin Schulz <quentin.schulz@theobroma-systems.com>
Mon, 11 Mar 2024 12:01:55 +0000 (13:01 +0100)
committerKever Yang <kever.yang@rock-chips.com>
Wed, 13 Mar 2024 10:14:19 +0000 (18:14 +0800)
commit8ed8517d9e54424df1966f862cb7620c5996722a
tree0c732f3c51386ec543053a6ddf4f628be7a575ca
parent5d710738bb1e0ff2bb93ce7baf4c9691ce919b53
rockchip: rk3588: add constants for some register address spaces

It's one thing to have the register mapped via a well-defined struct but
it's another to be able to make use of it. For that to happen, one needs
to cast the physical address memory of the beginning of the register
address space with the struct. Since this cannot change, let's hardcode
it in the include files so that users do not need to duplicate this line
of code in their own implementation.

Cc: Quentin Schulz <foss+uboot@0leil.net>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
Signed-off-by: Quentin Schulz <quentin.schulz@theobroma-systems.com>
arch/arm/include/asm/arch-rockchip/cru_rk3588.h
arch/arm/include/asm/arch-rockchip/ioc_rk3588.h
arch/arm/mach-rockchip/rk3588/rk3588.c