Commit 538d547
clk: starfive: jh7110-sys: Add notifier for PLL0 clock
Add notifier function for PLL0 clock. In the function, the cpu_root clock
should be operated by saving its current parent and setting a new safe
parent (osc clock) before setting the PLL0 clock rate. After setting PLL0
rate, it should be switched back to the original parent clock.
Fixes: e2c510d ("riscv: dts: starfive: Add cpu scaling for JH7110 SoC")
Cc: [email protected]
Reviewed-by: Emil Renner Berthing <[email protected]>
Signed-off-by: Xingyu Wu <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Reviewed-by: Hal Feng <[email protected]>
Tested-by: Michael Jeanson <[email protected]>
Signed-off-by: Stephen Boyd <[email protected]>1 parent aa2eb2c commit 538d547
File tree
2 files changed
+32
-1
lines changed- drivers/clk/starfive
2 files changed
+32
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
385 | 385 | | |
386 | 386 | | |
387 | 387 | | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
388 | 414 | | |
389 | 415 | | |
390 | 416 | | |
| |||
413 | 439 | | |
414 | 440 | | |
415 | 441 | | |
416 | | - | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
417 | 446 | | |
418 | 447 | | |
419 | 448 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
| 117 | + | |
| 118 | + | |
117 | 119 | | |
118 | 120 | | |
119 | 121 | | |
| |||
0 commit comments