]> Gentwo Git Trees - linux/.git/commit
clk: thead: support changing DPU pixel clock rate
authorIcenowy Zheng <uwu@icenowy.me>
Sat, 16 Aug 2025 09:11:12 +0000 (17:11 +0800)
committerDrew Fustini <fustini@kernel.org>
Mon, 18 Aug 2025 21:58:23 +0000 (14:58 -0700)
commit8fede7ff692cc06791269cd7c68b2bd2f62af159
treec517deaf06a9dc0403c691c2f205362546ea0d01
parent56a48c1833aa1ede82cc3833d73750597eccfdb0
clk: thead: support changing DPU pixel clock rate

The DPU pixel clock rate corresponds to the required dot clock of the
display mode, so it needs to be tweakable.

Add support to change it, by adding generic divider setting code,
arming the code to the dpu0/dpu1 clocks, and setting the pixel clock
connected to the DPU (after a gate) to CLK_SET_RATE_PARENT to propagate
it to the dividers.

Signed-off-by: Icenowy Zheng <uwu@icenowy.me>
Reviewed-by: Drew Fustini <fustini@kernel.org>
Signed-off-by: Drew Fustini <fustini@kernel.org>
drivers/clk/thead/clk-th1520-ap.c