mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-17 01:04:19 +08:00
clk: mxs: imx28: decrease the frequency of ref_io1 for SSP2 and SSP3
SSP0 and SSP1 use ref_io0 which has decreased frequency. Expand the frequency fix for ref_io1 to get SSP2 and SSP3 to work. Signed-off-by: Lauri Hintsala <lauri.hintsala@bluegiga.com> Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
This commit is contained in:
parent
275d58025f
commit
64e2bc4130
@ -112,11 +112,11 @@ static void __init clk_misc_init(void)
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
* 480 MHz seems too high to be ssp clock source directly,
|
* 480 MHz seems too high to be ssp clock source directly,
|
||||||
* so set frac0 to get a 288 MHz ref_io0.
|
* so set frac0 to get a 288 MHz ref_io0 and ref_io1.
|
||||||
*/
|
*/
|
||||||
val = readl_relaxed(FRAC0);
|
val = readl_relaxed(FRAC0);
|
||||||
val &= ~(0x3f << BP_FRAC0_IO0FRAC);
|
val &= ~((0x3f << BP_FRAC0_IO0FRAC) | (0x3f << BP_FRAC0_IO1FRAC));
|
||||||
val |= 30 << BP_FRAC0_IO0FRAC;
|
val |= (30 << BP_FRAC0_IO0FRAC) | (30 << BP_FRAC0_IO1FRAC);
|
||||||
writel_relaxed(val, FRAC0);
|
writel_relaxed(val, FRAC0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user