]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
clk: k210: Move the clint clock to under aclk
authorSean Anderson <seanga2@gmail.com>
Fri, 9 Apr 2021 02:13:07 +0000 (22:13 -0400)
committerLeo Yu-Chi Liang <ycliang@andestech.com>
Fri, 14 May 2021 08:20:48 +0000 (16:20 +0800)
No other (real) clocks have the cpu clock as their parent; instead they are
children of aclk. Move the clint clock under aclk to match them.

Signed-off-by: Sean Anderson <seanga2@gmail.com>
drivers/clk/kendryte/clk.c

index ab86533bb4f1ec4ee8a437135d0343fe137a98b2..5091f07eb0b4d9070447368319ff72233ced18a9 100644 (file)
@@ -643,7 +643,7 @@ static int k210_clk_probe(struct udevice *dev)
 
        /* The MTIME register in CLINT runs at one 50th the CPU clock speed */
        clk_dm(K210_CLK_CLINT,
-              clk_register_fixed_factor(NULL, "clint", "cpu", 0, 1, 50));
+              clk_register_fixed_factor(NULL, "clint", "aclk", 0, 1, 50));
 
        return 0;
 }