mirror of
https://xff.cz/git/u-boot/
synced 2025-09-02 17:22:22 +02:00
sunxi: h3: Fix PLL1 setup to never use dividers
Kernel would lower the divider on first CLK change and cause the lock up.
This commit is contained in:
@@ -115,11 +115,10 @@ void clock_set_pll1(unsigned int clk)
|
|||||||
int k = 1;
|
int k = 1;
|
||||||
int m = 1;
|
int m = 1;
|
||||||
|
|
||||||
if (clk > 1152000000) {
|
if (clk >= 1368000000) {
|
||||||
k = 2;
|
|
||||||
} else if (clk > 768000000) {
|
|
||||||
k = 3;
|
k = 3;
|
||||||
m = 2;
|
} else if (clk >= 768000000) {
|
||||||
|
k = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Switch to 24MHz clock while changing PLL1 */
|
/* Switch to 24MHz clock while changing PLL1 */
|
||||||
|
Reference in New Issue
Block a user