diff mbox series

[10/20] arm: rockchip: add RK3576-specific syscon ids

Message ID 20241121142731.1202209-11-heiko@sntech.de
State New
Delegated to: Kever Yang
Headers show
Series Support for the RK3576 | expand

Commit Message

Heiko Stübner Nov. 21, 2024, 2:27 p.m. UTC
From: Detlev Casanova <detlev.casanova@collabora.com>

The rk3576 defines some more different syscons, namely the IOC-syscon
holding io-controller registers and sdgmac holding settings for the
gmac controller.

Signed-off-by: Detlev Casanova <detlev.casanova@collabora.com>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
---
 arch/arm/include/asm/arch-rockchip/clock.h | 2 ++
 1 file changed, 2 insertions(+)

Comments

Quentin Schulz Nov. 26, 2024, 5:12 p.m. UTC | #1
Hi Heiko,

On 11/21/24 3:27 PM, Heiko Stuebner wrote:
> From: Detlev Casanova <detlev.casanova@collabora.com>
> 
> The rk3576 defines some more different syscons, namely the IOC-syscon
> holding io-controller registers and sdgmac holding settings for the
> gmac controller.
> 
> Signed-off-by: Detlev Casanova <detlev.casanova@collabora.com>
> Signed-off-by: Heiko Stuebner <heiko@sntech.de>
> ---
>   arch/arm/include/asm/arch-rockchip/clock.h | 2 ++
>   1 file changed, 2 insertions(+)
> 
> diff --git a/arch/arm/include/asm/arch-rockchip/clock.h b/arch/arm/include/asm/arch-rockchip/clock.h
> index 73e5283108b..82305ef17ae 100644
> --- a/arch/arm/include/asm/arch-rockchip/clock.h
> +++ b/arch/arm/include/asm/arch-rockchip/clock.h
> @@ -32,6 +32,8 @@ enum {
>   	ROCKCHIP_SYSCON_PIPE_PHY2_GRF,
>   	ROCKCHIP_SYSCON_VOP_GRF,
>   	ROCKCHIP_SYSCON_VO_GRF,
> +	ROCKCHIP_SYSCON_IOC,
> +	ROCKCHIP_SYSCON_SDGMAC,

We should really start migrating away from this.

I would hope that the generic syscon would be enough for us. The issue 
would be to migrate all

syscon_get_first_range(ROCKCHIP_SYSCON_*);

we use in the code by checking the DT instead, e.g. rockchip,grf 
property for ROCKCHIP_SYSCON_GRF. For DT-less driver (e.g. SDRAM), I 
guess just using a hardcoded address would do just fine? Like, I don't 
understand what this brings us.

Anyway, a topic for another patch series :)

Reviewed-by: Quentin Schulz <quentin.schulz@cherry.de>

Thanks!
Quentin
diff mbox series

Patch

diff --git a/arch/arm/include/asm/arch-rockchip/clock.h b/arch/arm/include/asm/arch-rockchip/clock.h
index 73e5283108b..82305ef17ae 100644
--- a/arch/arm/include/asm/arch-rockchip/clock.h
+++ b/arch/arm/include/asm/arch-rockchip/clock.h
@@ -32,6 +32,8 @@  enum {
 	ROCKCHIP_SYSCON_PIPE_PHY2_GRF,
 	ROCKCHIP_SYSCON_VOP_GRF,
 	ROCKCHIP_SYSCON_VO_GRF,
+	ROCKCHIP_SYSCON_IOC,
+	ROCKCHIP_SYSCON_SDGMAC,
 };
 
 /* Standard Rockchip clock numbers */