mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-16 13:34:30 +00:00
clk: imx: clk-pllv3: fix incorrect handle of enet powerdown bit
After commit f53947456f98 ("ARM: clk: imx: update pllv3 to support imx7"), the former used BM_PLL_POWER bit is not correct anymore for IMX7 ENET. Instead, pll->powerdown holds the correct bit, so using powerdown bit in clk_pllv3_{prepare | unprepare} functions. Fixes: f53947456f98 ("ARM: clk: imx: update pllv3 to support imx7") Signed-off-by: Dong Aisheng <aisheng.dong@nxp.com> Signed-off-by: Shawn Guo <shawnguo@kernel.org>
This commit is contained in:
parent
f83d31635c
commit
b3e76bdc0b
@ -77,9 +77,9 @@ static int clk_pllv3_prepare(struct clk_hw *hw)
|
|||||||
|
|
||||||
val = readl_relaxed(pll->base);
|
val = readl_relaxed(pll->base);
|
||||||
if (pll->powerup_set)
|
if (pll->powerup_set)
|
||||||
val |= BM_PLL_POWER;
|
val |= pll->powerdown;
|
||||||
else
|
else
|
||||||
val &= ~BM_PLL_POWER;
|
val &= ~pll->powerdown;
|
||||||
writel_relaxed(val, pll->base);
|
writel_relaxed(val, pll->base);
|
||||||
|
|
||||||
return clk_pllv3_wait_lock(pll);
|
return clk_pllv3_wait_lock(pll);
|
||||||
@ -92,9 +92,9 @@ static void clk_pllv3_unprepare(struct clk_hw *hw)
|
|||||||
|
|
||||||
val = readl_relaxed(pll->base);
|
val = readl_relaxed(pll->base);
|
||||||
if (pll->powerup_set)
|
if (pll->powerup_set)
|
||||||
val &= ~BM_PLL_POWER;
|
val &= ~pll->powerdown;
|
||||||
else
|
else
|
||||||
val |= BM_PLL_POWER;
|
val |= pll->powerdown;
|
||||||
writel_relaxed(val, pll->base);
|
writel_relaxed(val, pll->base);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user