mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 20:07:46 +09:00
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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user