From: Jerome Brunet Date: Fri, 19 Jan 2018 15:55:29 +0000 (+0100) Subject: clk: meson: axg: add the fractional part of the fixed_pll X-Git-Tag: v4.19~1196^2~7^2~1^2~30^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6b71aceceb09918daf37a40a1221077599040be3;p=platform%2Fkernel%2Flinux-rpi.git clk: meson: axg: add the fractional part of the fixed_pll The fixed_pll also has a fractional part. On axg s400 board, without this parameter, the calculated rate is off by ~8Mhz (0,4%). The fixed_pll being the root of the peripheral clock tree, this error is propagated to the rest of the clocks Adding the definition of the parameter fixes the problem Fixes: 78b4af312f91 ("clk: meson-axg: add clock controller drivers") Signed-off-by: Jerome Brunet --- diff --git a/drivers/clk/meson/axg.c b/drivers/clk/meson/axg.c index 8e37bbf..a1ac0ff 100644 --- a/drivers/clk/meson/axg.c +++ b/drivers/clk/meson/axg.c @@ -37,6 +37,11 @@ static struct meson_clk_pll axg_fixed_pll = { .shift = 16, .width = 2, }, + .frac = { + .reg_off = HHI_MPLL_CNTL2, + .shift = 0, + .width = 12, + }, .lock = &meson_clk_lock, .hw.init = &(struct clk_init_data){ .name = "fixed_pll",