clk: tm2: disable the pcie pll internal module when suspend [1/1]

PD#SWPL-15470

Problem:
tm2 pcie pll power dissipation is high when suspend

Solution:
disable the pcie pll internal module when suspend

Verify:
tm2

Change-Id: I298a7a15c58ebd68c379b0281284d71425207b0e
Signed-off-by: Jian Hu <jian.hu@amlogic.com>
This commit is contained in:
Jian Hu
2019-10-18 18:41:02 +08:00
committed by Jianxin Pan
parent 07d0ceddf2
commit 2eea02e00c

View File

@@ -507,6 +507,9 @@ static void meson_tl1_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(0x60000000, pll->base + p->reg_off + 54 * 4);
if (pll->lock)
spin_unlock_irqrestore(pll->lock, flags);
}