diff options
| author | Daniele Briguglio <hello@superkali.me> | 2026-04-19 13:43:07 +0200 |
|---|---|---|
| committer | Heiko Stuebner <heiko@sntech.de> | 2026-04-27 13:32:10 +0200 |
| commit | 28820fc7983b9c8e160c0095067a570bdfcae1f0 (patch) | |
| tree | 76f32d7148ea1eff234046bebd992a07493188fa /tools/perf/scripts/python | |
| parent | 56c2ca0ae7cb9254c4c2b82baa0afe29feaa274e (diff) | |
clk: rockchip: allow grf_type_sys lookup in aux_grf_table
Remove the grf_type_sys exclusion from the auxiliary GRF table lookup
in rockchip_clk_register_branches(). Previously, branches with
grf_type_sys always used ctx->grf directly, bypassing the aux_grf_table.
This is a problem on SoCs like RK3588 where ctx->grf points to the
PHP_GRF (set via the CRU's rockchip,grf phandle), but GATE_GRF clock
entries need to access the SYS_GRF instead.
With this change, grf_type_sys branches first check the aux_grf_table,
and fall back to ctx->grf if no entry is found. This is backwards
compatible: on SoCs that do not register grf_type_sys in the
aux_grf_table, the behavior is unchanged.
Reviewed-by: Nicolas Frattaroli <nicolas.frattaroli@collabora.com>
Signed-off-by: Daniele Briguglio <hello@superkali.me>
Tested-by: Ricardo Pardini <ricardo@pardini.net>
Link: https://patch.msgid.link/20260419-rk3588-mclk-gate-grf-v4-2-513a42dd1dcc@superkali.me
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
