commit | 93d5ffbf810d4160e890ff1eaa1c75b80b7bf819 | [log] [tgz] |
---|---|---|
author | Kumar Gala <galak@kernel.crashing.org> | Mon Apr 21 09:28:36 2008 -0500 |
committer | Wolfgang Denk <wd@denx.de> | Thu Apr 24 15:42:35 2008 +0200 |
tree | 12e45edf11ffbfc0028a6dbf436bae23c2229827 | |
parent | a8e0e3cdf985a7d9d6283ce4a999ceaf63de1118 [diff] |
85xx: Round up frequency calculations to get reasonable output eg. because of rounding error we can get 799Mhz instead of 800Mhz. Introduced DIV_ROUND_UP and roundup taken from linux kernel. Signed-off-by: Dejan Minic <minic@freescale.com> Signed-off-by: Srikanth Srinivasan <srikanth.srinivasan@freescale.com> Signed-off-by: Kumar Gala <galak@kernel.crashing.org> Acked-by: Andy Fleming <afleming@freescale.com>