aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/clk/meson/clkc.h
diff options
context:
space:
mode:
authorJerome Brunet <jbrunet@baylibre.com>2018-01-19 10:55:25 -0500
committerJerome Brunet <jbrunet@baylibre.com>2018-02-12 03:49:23 -0500
commit7d3142e5d64a2bdcd382dac979407f6afc83d685 (patch)
tree43f41c31e6e7b5a1b16078ea883a3bf857fabf22 /drivers/clk/meson/clkc.h
parent4c5f67b7ea329ed8b3cf708fde4656b2d3b27dbf (diff)
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/clkc.h')
-rw-r--r--drivers/clk/meson/clkc.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/clk/meson/clkc.h b/drivers/clk/meson/clkc.h
index c2ff0520ce53..4acb35bda669 100644
--- a/drivers/clk/meson/clkc.h
+++ b/drivers/clk/meson/clkc.h
@@ -41,6 +41,7 @@ struct pll_rate_table {
41 u16 n; 41 u16 n;
42 u16 od; 42 u16 od;
43 u16 od2; 43 u16 od2;
44 u16 od3;
44 u16 frac; 45 u16 frac;
45}; 46};
46 47
@@ -92,6 +93,7 @@ struct meson_clk_pll {
92 struct parm frac; 93 struct parm frac;
93 struct parm od; 94 struct parm od;
94 struct parm od2; 95 struct parm od2;
96 struct parm od3;
95 const struct pll_setup_params params; 97 const struct pll_setup_params params;
96 const struct pll_rate_table *rate_table; 98 const struct pll_rate_table *rate_table;
97 unsigned int rate_count; 99 unsigned int rate_count;