diff options
author | Jerome Brunet <jbrunet@baylibre.com> | 2018-01-19 16:55:25 +0100 |
---|---|---|
committer | Jerome Brunet <jbrunet@baylibre.com> | 2018-02-12 09:49:23 +0100 |
commit | 7d3142e5d64a2bdcd382dac979407f6afc83d685 (patch) | |
tree | 43f41c31e6e7b5a1b16078ea883a3bf857fabf22 /drivers/clk/meson/gxbb.c | |
parent | 4c5f67b7ea329ed8b3cf708fde4656b2d3b27dbf (diff) | |
download | linux-7d3142e5d64a2bdcd382dac979407f6afc83d685.tar.bz2 |
clk: meson: add od3 to the pll driver
Some meson plls, such as the hdmi pll, are using a 3rd od parameter,
which is yet another "power of 2" post divider. Add it to fix the
calculation of the hdmi_pll rate
Fixes: 738f66d3211d ("clk: gxbb: add AmLogic GXBB clk controller driver")
Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
Diffstat (limited to 'drivers/clk/meson/gxbb.c')
-rw-r--r-- | drivers/clk/meson/gxbb.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/clk/meson/gxbb.c b/drivers/clk/meson/gxbb.c index 4b5229f656e3..e83573b457fc 100644 --- a/drivers/clk/meson/gxbb.c +++ b/drivers/clk/meson/gxbb.c @@ -238,6 +238,11 @@ static struct meson_clk_pll gxbb_hdmi_pll = { .shift = 22, .width = 2, }, + .od3 = { + .reg_off = HHI_HDMI_PLL_CNTL2, + .shift = 18, + .width = 2, + }, .lock = &meson_clk_lock, .hw.init = &(struct clk_init_data){ .name = "hdmi_pll", |