clk: g12a: clear pcie cntl5 for save power [1/1]

PD#SWPL-4583

Problem:
cntl5 caused power increase

Solution:
clear pcie cntl5 when pcie clk disabled

Verify:
test pass on g12a skt

Change-Id: I495590af2ccb81eb5ae90c86008679def8673a70
Signed-off-by: Shunzhou Jiang <shunzhou.jiang@amlogic.com>
This commit is contained in:
Shunzhou Jiang
2019-01-24 09:46:06 +08:00
committed by Luke Go
parent 1ea573c3c4
commit 40621e99c0

View File

@@ -536,6 +536,11 @@ static void meson_g12a_pll_disable(struct clk_hw *hw)
writel(readl(pll->base + p->reg_off) & (~MESON_PLL_ENABLE),
pll->base + p->reg_off);
if (!strcmp(clk_hw_get_name(hw), "pcie_pll")) {
writel(0x20000060,
pll->base + p->reg_off + 0x14);
}
if (pll->lock)
spin_unlock_irqrestore(pll->lock, flags);
}