aboutsummaryrefslogtreecommitdiff
path: root/arch/arm/include/asm/arch-rockchip/cru_rk3588.h
diff options
context:
space:
mode:
authorQuentin Schulz <quentin.schulz@theobroma-systems.com>2024-03-11 13:01:55 +0100
committerKever Yang <kever.yang@rock-chips.com>2024-03-13 18:14:19 +0800
commit8ed8517d9e54424df1966f862cb7620c5996722a (patch)
tree0c732f3c51386ec543053a6ddf4f628be7a575ca /arch/arm/include/asm/arch-rockchip/cru_rk3588.h
parent5d710738bb1e0ff2bb93ce7baf4c9691ce919b53 (diff)
downloadu-boot-8ed8517d9e54424df1966f862cb7620c5996722a.zip
u-boot-8ed8517d9e54424df1966f862cb7620c5996722a.tar.gz
u-boot-8ed8517d9e54424df1966f862cb7620c5996722a.tar.bz2
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>
Diffstat (limited to 'arch/arm/include/asm/arch-rockchip/cru_rk3588.h')
-rw-r--r--arch/arm/include/asm/arch-rockchip/cru_rk3588.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/include/asm/arch-rockchip/cru_rk3588.h b/arch/arm/include/asm/arch-rockchip/cru_rk3588.h
index 7f4a908..a4507e5 100644
--- a/arch/arm/include/asm/arch-rockchip/cru_rk3588.h
+++ b/arch/arm/include/asm/arch-rockchip/cru_rk3588.h
@@ -63,6 +63,8 @@ struct rk3588_pll {
unsigned int reserved0[3];
};
+#define CRU_BASE 0xfd7c0000
+
struct rk3588_cru {
struct rk3588_pll pll[18];
unsigned int reserved0[16];/* Address Offset: 0x0240 */