]> git.dujemihanovic.xyz Git - u-boot.git/commit
mx25: Clean up clock calculations
authorBenoît Thébaudeau <benoit.thebaudeau@advansee.com>
Thu, 27 Sep 2012 10:27:14 +0000 (10:27 +0000)
committerTom Rini <trini@ti.com>
Mon, 15 Oct 2012 18:54:12 +0000 (11:54 -0700)
commitfac7c817c31e6c60b2e03e8fcb4b745d0c8d10ab
treebd947986d9033381bb3f88857b3add8afde979c7
parent3c76add2628116872befc230cdd4df8e3a6ac5e3
mx25: Clean up clock calculations

Avoid possible overflow in clock calculations, and do not waste calls to lldiv()
to divide simple ulongs.

Signed-off-by: Benoît Thébaudeau <benoit.thebaudeau@advansee.com>
Cc: Stefano Babic <sbabic@denx.de>
arch/arm/cpu/arm926ejs/mx25/generic.c