Skip to content

Commit cf91977

Browse files
committed
clk: renesas: r8a779g0: Fix OSC predividers
According to the table in Note 5 for the OSC clock in Table 8.1.4e ("Lists of CPG clocks generated from PLL5") of the R-Car V4H Series Hardware User's Manual Rev. 0.54, the predividers for the OSC clock are 16 resp. 32 when using a 16.66 resp. 33.33 MHz external crystal. Fixes: 0ab55cf ("clk: renesas: cpg-mssr: Add support for R-Car V4H") Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Reviewed-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com> Link: https://lore.kernel.org/r/dcd572acc584c237f70d2309e038f25040236a87.1669740722.git.geert+renesas@glider.be
1 parent 868695e commit cf91977

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

drivers/clk/renesas/r8a779g0-cpg-mssr.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -211,20 +211,20 @@ static const struct mssr_mod_clk r8a779g0_mod_clks[] __initconst = {
211211
* MD EXTAL PLL1 PLL2 PLL3 PLL4 PLL5 PLL6 OSC
212212
* 14 13 (MHz)
213213
* ------------------------------------------------------------------------
214-
* 0 0 16.66 / 1 x192 x204 x192 x144 x192 x168 /15
214+
* 0 0 16.66 / 1 x192 x204 x192 x144 x192 x168 /16
215215
* 0 1 20 / 1 x160 x170 x160 x120 x160 x140 /19
216216
* 1 0 Prohibited setting
217-
* 1 1 33.33 / 2 x192 x204 x192 x144 x192 x168 /38
217+
* 1 1 33.33 / 2 x192 x204 x192 x144 x192 x168 /32
218218
*/
219219
#define CPG_PLL_CONFIG_INDEX(md) ((((md) & BIT(14)) >> 13) | \
220220
(((md) & BIT(13)) >> 13))
221221

222222
static const struct rcar_gen4_cpg_pll_config cpg_pll_configs[4] = {
223223
/* EXTAL div PLL1 mult/div PLL2 mult/div PLL3 mult/div PLL4 mult/div PLL5 mult/div PLL6 mult/div OSC prediv */
224-
{ 1, 192, 1, 204, 1, 192, 1, 144, 1, 192, 1, 168, 1, 15, },
224+
{ 1, 192, 1, 204, 1, 192, 1, 144, 1, 192, 1, 168, 1, 16, },
225225
{ 1, 160, 1, 170, 1, 160, 1, 120, 1, 160, 1, 140, 1, 19, },
226226
{ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, },
227-
{ 2, 192, 1, 204, 1, 192, 1, 144, 1, 192, 1, 168, 1, 38, },
227+
{ 2, 192, 1, 204, 1, 192, 1, 144, 1, 192, 1, 168, 1, 32, },
228228
};
229229

230230
static int __init r8a779g0_cpg_mssr_init(struct device *dev)

0 commit comments

Comments
 (0)