9
0
Fork 0

imx27: Fix calculation of ahb clock and ipg clock

This commit is contained in:
Sascha Hauer 2008-03-11 22:00:47 +01:00
parent 1871125c56
commit 5864a49007
1 changed files with 2 additions and 5 deletions

View File

@ -80,17 +80,14 @@ ulong imx_get_ahbclk(void)
else
div = ((cscr >> 8) & 0x3) + 1;
return fref / div;
return ((fref * 2) / 3) / div;
}
ulong imx_get_ipgclk(void)
{
ulong clk = imx_get_ahbclk();
if (imx_silicon_revision() == IMX27_CHIP_REVISION_1_0)
return clk >> 1;
else
return clk;
return clk >> 1;
}
ulong imx_get_spllclk(void)