]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
clk: rockchip: add helper to register auxiliary GRFs
authorDaniele Briguglio <hello@superkali.me>
Sun, 19 Apr 2026 11:43:08 +0000 (13:43 +0200)
committerHeiko Stuebner <heiko@sntech.de>
Mon, 27 Apr 2026 11:32:10 +0000 (13:32 +0200)
commit32d1d88c4165d0da31d3bfda912e80e8110d6fc1
treef0820c9a111437defa1039efacc6feae6c81ef4c
parent28820fc7983b9c8e160c0095067a570bdfcae1f0
clk: rockchip: add helper to register auxiliary GRFs

Add rockchip_clk_add_grf() as a helper to register an auxiliary GRF
into the clock provider's aux_grf_table. This encapsulates the
struct rockchip_aux_grf allocation and hashtable insertion, so SoC
clock drivers do not need to open-code it.

Suggested-by: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: Daniele Briguglio <hello@superkali.me>
Link: https://patch.msgid.link/20260419-rk3588-mclk-gate-grf-v4-3-513a42dd1dcc@superkali.me
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
drivers/clk/rockchip/clk.c
drivers/clk/rockchip/clk.h