]> git.karo-electronics.de Git - karo-tx-uboot.git/commit
MX6: Correct calculation of PLL_SYS
authorAndre Renaud <andre@bluewatersys.com>
Mon, 9 Jun 2014 20:47:13 +0000 (08:47 +1200)
committerStefano Babic <sbabic@denx.de>
Wed, 9 Jul 2014 12:55:30 +0000 (14:55 +0200)
commit2eb268f6fd236a5ad9d51e7e47190d7994b3920f
tree75f6e2dd6e33b81b5b2da29a70514356cec6db3f
parent85d8a5fc98a65f7ba7ec5df08b0567d3ad9009dc
MX6: Correct calculation of PLL_SYS

DIV_SELECT is used as Fout = Fin * div_select / 2.0, so we should do
the shift after the multiply to avoid rounding errors

Signed-off-by: Andre Renaud <andre@bluewatersys.com>
arch/arm/cpu/armv7/mx6/clock.c