@@ -97,13 +97,10 @@ static void mtk_pll_set_rate_regs(struct mtk_clk_pll *pll, u32 pcw,
int postdiv)
{
u32 con1, val;
- int pll_en;
u32 tuner_en = 0;
u32 tuner_en_mask;
void __iomem *tuner_en_addr = NULL;
- pll_en = readl(pll->base_addr + REG_CON0) & CON0_BASE_EN;
-
/* disable tuner */
if (pll->tuner_en_addr) {
tuner_en_addr = pll->tuner_en_addr;
@@ -142,8 +139,7 @@ static void mtk_pll_set_rate_regs(struct mtk_clk_pll *pll, u32 pcw,
con1 = readl(pll->base_addr + REG_CON1);
- if (pll_en)
- con1 |= CON1_PCW_CHG;
+ con1 |= CON1_PCW_CHG;
writel(con1, pll->base_addr + REG_CON1);
if (pll->tuner_addr)
@@ -156,8 +152,7 @@ static void mtk_pll_set_rate_regs(struct mtk_clk_pll *pll, u32 pcw,
writel(val, tuner_en_addr);
}
- if (pll_en)
- udelay(20);
+ udelay(20);
}
/*