mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-12 16:07:30 +00:00
imx6: make use of lldiv(..)
Commit 762a88ccf8
introduces
a 64-bit division without using the lldiv() function,
which pulls in previously unused libgcc stuff.
Signed-off-by: Måns Rullgård <mans@mansr.com>
Signed-off-by: Christian Gmeiner <christian.gmeiner@gmail.com>
Acked-by: Stefano Babic <sbabic@denx.de>
This commit is contained in:
parent
f353397011
commit
5a66016987
1 changed files with 2 additions and 1 deletions
|
@ -5,6 +5,7 @@
|
|||
*/
|
||||
|
||||
#include <common.h>
|
||||
#include <div64.h>
|
||||
#include <asm/io.h>
|
||||
#include <asm/errno.h>
|
||||
#include <asm/arch/imx-regs.h>
|
||||
|
@ -123,7 +124,7 @@ static u32 mxc_get_pll_pfd(enum pll_clocks pll, int pfd_num)
|
|||
return 0;
|
||||
}
|
||||
|
||||
return (freq * 18) / ((div & ANATOP_PFD_FRAC_MASK(pfd_num)) >>
|
||||
return lldiv(freq * 18, (div & ANATOP_PFD_FRAC_MASK(pfd_num)) >>
|
||||
ANATOP_PFD_FRAC_SHIFT(pfd_num));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue