]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
clk: meson: meson8b: add the fractional divider for vid_pll_dco
authorMartin Blumenstingl <martin.blumenstingl@googlemail.com>
Sun, 2 Dec 2018 21:42:19 +0000 (22:42 +0100)
committerNeil Armstrong <narmstrong@baylibre.com>
Mon, 3 Dec 2018 10:49:51 +0000 (11:49 +0100)
This "vid_pll_dco" (which should be named HDMI_PLL or - as the datasheet
calls it - HPLL) has a 12-bit wide fractional parameter at
HHI_VID_PLL_CNTL2[11:0]. Add this so we correctly calculate the rate of
this PLL when u-boot is configured for a video mode which uses this
fractional parameter.

Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
Link: https://lkml.kernel.org/r/20181202214220.7715-3-martin.blumenstingl@googlemail.com
drivers/clk/meson/meson8b.c
drivers/clk/meson/meson8b.h

index a4ae9c957fdec2b8355ac31a09edd237165934f1..0f3f4759fc9284ffd81f44b2f527726b1731a146 100644 (file)
@@ -137,6 +137,11 @@ static struct clk_regmap meson8b_vid_pll_dco = {
                        .shift   = 10,
                        .width   = 5,
                },
+               .frac = {
+                       .reg_off = HHI_VID_PLL_CNTL2,
+                       .shift   = 0,
+                       .width   = 12,
+               },
                .l = {
                        .reg_off = HHI_VID_PLL_CNTL,
                        .shift   = 31,
index 0abb331162ab914959fb2c4c4fa2b1e449ea848d..e953923792d7979ced9742b2ae089181a86b6e59 100644 (file)
@@ -33,6 +33,7 @@
 #define HHI_MPLL_CNTL                  0x280 /* 0xa0 offset in data sheet */
 #define HHI_SYS_PLL_CNTL               0x300 /* 0xc0 offset in data sheet */
 #define HHI_VID_PLL_CNTL               0x320 /* 0xc8 offset in data sheet */
+#define HHI_VID_PLL_CNTL2              0x324 /* 0xc9 offset in data sheet */
 
 /*
  * MPLL register offeset taken from the S905 datasheet. Vendor kernel source