clk: meson: gxbb: add the fractional part of the fixed_pll
authorJerome Brunet <jbrunet@baylibre.com>
Fri, 19 Jan 2018 15:55:28 +0000 (16:55 +0100)
committerJerome Brunet <jbrunet@baylibre.com>
Mon, 12 Feb 2018 08:49:23 +0000 (09:49 +0100)
The fixed_pll of gxbb and gxl also has a fractional parameter. This has
not been a problem so far because the fractional part is actually set
to 0 on these platforms, so the rate remains correct when it is ignored.
Still, it is better represent the pll the way it is, so add the frac
parameter now

Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
drivers/clk/meson/gxbb.c

index 119babfa8d14fadaea871bf1561fdafd944e9926..a5f25cc1944c0a0b942a10063e167b8d7cc95c43 100644 (file)
@@ -202,6 +202,11 @@ static struct meson_clk_pll gxbb_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",