Skip to content

Commit 5d4b033

Browse files
ashinlinjamess-huang
authored andcommitted
HDMI : Change to use the clock source of npll and table to improve the HDMI compatibility
Change-Id: I2d4236fd220cf9c5f5f94648791d86528c00d5bb Reviewed-on: https://tp-biosrd-v02/gerrit/81497 Reviewed-by: Jamess Huang(黃以民) <Jamess_Huang@asus.com> Tested-by: Jamess Huang(黃以民) <Jamess_Huang@asus.com>
1 parent cf8a0cc commit 5d4b033

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

drivers/clk/rockchip/clk-rk3288.c

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,24 @@ static struct rockchip_pll_rate_table rk3288_pll_rates[] = {
131131
{ /* sentinel */ },
132132
};
133133

134+
static struct rockchip_pll_rate_table rk3288_npll_rates[] = {
135+
RK3066_PLL_RATE_NB(594000000, 1, 99, 4, 32),
136+
RK3066_PLL_RATE_NB(585000000, 6, 585, 4, 32),
137+
RK3066_PLL_RATE_NB(432000000, 3, 216, 4, 32),
138+
RK3066_PLL_RATE_NB(426000000, 3, 213, 4, 32),
139+
RK3066_PLL_RATE_NB(400000000, 1, 100, 6, 32),
140+
RK3066_PLL_RATE_NB(342000000, 3, 171, 4, 32),
141+
RK3066_PLL_RATE_NB(297000000, 2, 198, 8, 16),
142+
RK3066_PLL_RATE_NB(270000000, 1, 135, 12, 32),
143+
RK3066_PLL_RATE_NB(260000000, 1, 130, 12, 32),
144+
RK3066_PLL_RATE_NB(148500000, 1, 99, 16, 32),
145+
RK3066_PLL_RATE_NB(146250000, 6, 585, 16, 32),
146+
RK3066_PLL_RATE_NB(108000000, 1, 54, 12, 32),
147+
RK3066_PLL_RATE_NB(106500000, 4, 213, 12, 32),
148+
RK3066_PLL_RATE_NB(85500000, 4, 171, 12, 32),
149+
RK3066_PLL_RATE_NB(74250000, 4, 198, 16, 32),
150+
};
151+
134152
#define RK3288_DIV_ACLK_CORE_M0_MASK 0xf
135153
#define RK3288_DIV_ACLK_CORE_M0_SHIFT 0
136154
#define RK3288_DIV_ACLK_CORE_MP_MASK 0xf
@@ -241,7 +259,7 @@ static struct rockchip_pll_clock rk3288_pll_clks[] __initdata = {
241259
[gpll] = PLL(pll_rk3066, PLL_GPLL, "gpll", mux_pll_p, 0, RK3288_PLL_CON(12),
242260
RK3288_MODE_CON, 12, 8, 0, rk3288_pll_rates),
243261
[npll] = PLL(pll_rk3066, PLL_NPLL, "npll", mux_pll_p, 0, RK3288_PLL_CON(16),
244-
RK3288_MODE_CON, 14, 9, 0, rk3288_pll_rates),
262+
RK3288_MODE_CON, 14, 9, 0, rk3288_npll_rates),
245263
};
246264

247265
static struct clk_div_table div_hclk_cpu_t[] = {

0 commit comments

Comments
 (0)