]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
clk: renesas: r8a77995: Simplify PLL3 multiplier/divider
authorGeert Uytterhoeven <geert+renesas@glider.be>
Wed, 17 Oct 2018 10:00:33 +0000 (12:00 +0200)
committerGeert Uytterhoeven <geert+renesas@glider.be>
Tue, 4 Dec 2018 09:30:16 +0000 (10:30 +0100)
116/6 can be simplified to 58/3.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Acked-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/renesas/r8a77995-cpg-mssr.c

index b9745665731fac7ea6baee9beb1b284a43a70d01..eee3874865a95b1a2007a6c1ccb7244a5e030c0f 100644 (file)
@@ -191,14 +191,14 @@ static const unsigned int r8a77995_crit_mod_clks[] __initconst = {
  * MD19                EXTAL (MHz)     PLL0            PLL1            PLL3
  *--------------------------------------------------------------------
  * 0           48 x 1          x250/4          x100/3          x100/3
- * 1           48 x 1          x250/4          x100/3          x116/6
+ * 1           48 x 1          x250/4          x100/3          x58/3
  */
 #define CPG_PLL_CONFIG_INDEX(md)       (((md) & BIT(19)) >> 19)
 
 static const struct rcar_gen3_cpg_pll_config cpg_pll_configs[2] __initconst = {
        /* EXTAL div    PLL1 mult/div   PLL3 mult/div */
        { 1,            100,    3,      100,    3,      },
-       { 1,            100,    3,      116,    6,      },
+       { 1,            100,    3,      58,     3,      },
 };
 
 static int __init r8a77995_cpg_mssr_init(struct device *dev)