diff options
author | Martin Blumenstingl | 2018-12-02 22:42:19 +0100 |
---|---|---|
committer | Neil Armstrong | 2018-12-03 11:49:51 +0100 |
commit | 007f3da7d38ac7eb71fb092e43354dbf2e7b5109 (patch) | |
tree | 23bbb1943e32daa33e28eaad4695e7860c227034 /drivers/clk/meson/meson8b.c | |
parent | clk: meson: meson8b: fix the offset of vid_pll_dco's N value (diff) | |
download | kernel-qcow2-linux-007f3da7d38ac7eb71fb092e43354dbf2e7b5109.tar.gz kernel-qcow2-linux-007f3da7d38ac7eb71fb092e43354dbf2e7b5109.tar.xz kernel-qcow2-linux-007f3da7d38ac7eb71fb092e43354dbf2e7b5109.zip |
clk: meson: meson8b: add the fractional divider for vid_pll_dco
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
Diffstat (limited to 'drivers/clk/meson/meson8b.c')
-rw-r--r-- | drivers/clk/meson/meson8b.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/clk/meson/meson8b.c b/drivers/clk/meson/meson8b.c index a4ae9c957fde..0f3f4759fc92 100644 --- a/drivers/clk/meson/meson8b.c +++ b/drivers/clk/meson/meson8b.c @@ -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, |