diff options
author | Elaine Zhang <zhangqing@rock-chips.com> | 2025-04-15 23:51:19 +0200 |
---|---|---|
committer | Kever Yang <kever.yang@rock-chips.com> | 2025-04-23 22:12:05 +0800 |
commit | e4225b22cefeee5556c62c1f1ade5356e637c89c (patch) | |
tree | 202273ff3cfcdbbdf310b518290a5d4373fd0964 /arch/arm/include | |
parent | 3919310b37ec0394d944de6d3980254cd8ed3035 (diff) |
reset: rockchip: implement rk3576 lookup table
The current DT bindings for the rk3576 clock use a different ID than the
one that is supposed to be written to the hardware registers.
Thus, we cannot use directly the id provided in the phandle, but rather
use a lookup table to correctly setup the hardware.
This follows the implementation done in the Linux-Kernel and also
how the rk3588 does this both in the Linux-Kernel as well as U-Boot.
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
[adapted from mainline Linux code for u-boot]
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Reviewed-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
Diffstat (limited to 'arch/arm/include')
-rw-r--r-- | arch/arm/include/asm/arch-rockchip/clock.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/arm/include/asm/arch-rockchip/clock.h b/arch/arm/include/asm/arch-rockchip/clock.h index a9921fbb6e4..3c204501f70 100644 --- a/arch/arm/include/asm/arch-rockchip/clock.h +++ b/arch/arm/include/asm/arch-rockchip/clock.h @@ -225,6 +225,16 @@ int rockchip_reset_bind_lut(struct udevice *pdev, const int *lookup_table, */ int rk3528_reset_bind_lut(struct udevice *pdev, u32 reg_offset, u32 reg_number); /* + * rk3576_reset_bind_lut() - Bind soft reset device as child of clock device + * using dedicated RK3576 lookup table + * + * @pdev: clock udevice + * @reg_offset: the first offset in cru for softreset registers + * @reg_number: the reg numbers of softreset registers + * Return: 0 success, or error value + */ +int rk3576_reset_bind_lut(struct udevice *pdev, u32 reg_offset, u32 reg_number); +/* * rk3588_reset_bind_lut() - Bind soft reset device as child of clock device * using dedicated RK3588 lookup table * |