Skip to content

Commit bb85573

Browse files
xdarklightjbrun3t
authored andcommitted
clk: meson: meson8b: Add the HDMI PLL M/N parameters
The 3.10 vendor kernel uses only specific HDMI PLL M/N parameter combinations. The PLL won't lock for values smaller than 50 if the internal doubling (which is yet unknown how to use it) is disabled. However, when this doubling is enabled then the values smaller than 50 will lock just fine. The only restriction for values greater than 50 is that the resulting frequency must not exceed the 3.0GHz limit. These values are taken from the endlessm 3.10 kernel which includes additional M/N combinations for some VESA and 75Hz display modes. Signed-off-by: Martin Blumenstingl <[email protected]> Signed-off-by: Jerome Brunet <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 9e544b7 commit bb85573

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

drivers/clk/meson/meson8b.c

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,27 @@ static struct clk_regmap meson8b_fixed_pll = {
118118
},
119119
};
120120

121+
static const struct pll_params_table hdmi_pll_params_table[] = {
122+
PLL_PARAMS(40, 1),
123+
PLL_PARAMS(42, 1),
124+
PLL_PARAMS(44, 1),
125+
PLL_PARAMS(45, 1),
126+
PLL_PARAMS(49, 1),
127+
PLL_PARAMS(52, 1),
128+
PLL_PARAMS(54, 1),
129+
PLL_PARAMS(56, 1),
130+
PLL_PARAMS(59, 1),
131+
PLL_PARAMS(60, 1),
132+
PLL_PARAMS(61, 1),
133+
PLL_PARAMS(62, 1),
134+
PLL_PARAMS(64, 1),
135+
PLL_PARAMS(66, 1),
136+
PLL_PARAMS(68, 1),
137+
PLL_PARAMS(71, 1),
138+
PLL_PARAMS(82, 1),
139+
{ /* sentinel */ }
140+
};
141+
121142
static struct clk_regmap meson8b_hdmi_pll_dco = {
122143
.data = &(struct meson_clk_pll_data){
123144
.en = {
@@ -150,6 +171,7 @@ static struct clk_regmap meson8b_hdmi_pll_dco = {
150171
.shift = 29,
151172
.width = 1,
152173
},
174+
.table = hdmi_pll_params_table,
153175
},
154176
.hw.init = &(struct clk_init_data){
155177
/* sometimes also called "HPLL" or "HPLL PLL" */

0 commit comments

Comments
 (0)