]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
clk: nuvoton: fix bug for calculate pll clock
authorJim Liu <jim.t90615@gmail.com>
Mon, 21 Nov 2022 09:15:28 +0000 (17:15 +0800)
committerSean Anderson <seanga2@gmail.com>
Sun, 12 Feb 2023 17:39:46 +0000 (12:39 -0500)
Fix bug for npcm7xx bmc calculate pll clock.
PLLCON1 need to divide by 2.

Signed-off-by: Jim Liu <JJLIU0@nuvoton.com>
Acked-by: Sean Anderson <seanga2@gmail.com>
Link: https://lore.kernel.org/r/20221121091528.1351-1-JJLIU0@nuvoton.com
drivers/clk/nuvoton/clk_npcm7xx.c

index a12aaa2f4cd95c8644d1b5e312b0ae52f4fc7f2b..b23dd37af6c83d62ab9784dfa84c1c569028e4f8 100644 (file)
@@ -25,7 +25,7 @@ static const struct parent_data apb_parent[] = {{NPCM7XX_CLK_AHB, 0}};
 
 static struct npcm_clk_pll npcm7xx_clk_plls[] = {
        {NPCM7XX_CLK_PLL0, NPCM7XX_CLK_REFCLK, PLLCON0, 0},
-       {NPCM7XX_CLK_PLL1, NPCM7XX_CLK_REFCLK, PLLCON1, 0},
+       {NPCM7XX_CLK_PLL1, NPCM7XX_CLK_REFCLK, PLLCON1, POST_DIV2},
        {NPCM7XX_CLK_PLL2, NPCM7XX_CLK_REFCLK, PLLCON2, 0},
        {NPCM7XX_CLK_PLL2DIV2, NPCM7XX_CLK_REFCLK, PLLCON2, POST_DIV2}
 };