diff options
author | Christophe Leroy <christophe.leroy@c-s.fr> | 2017-07-13 13:09:44 (GMT) |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2017-07-23 02:22:47 (GMT) |
commit | 7a0a550c7f0cc1ca1e510c47c45e474122789bd6 (patch) | |
tree | 8d378511c850861725f80b68c4637de7e7890457 /common/malloc_simple.c | |
parent | b2f2c7be3429ad4dc9b242b85a7e87e0ded0487a (diff) | |
download | u-boot-fsl-qoriq-7a0a550c7f0cc1ca1e510c47c45e474122789bd6.tar.xz |
powerpc, 8xx: Simplify brgclk calculation and remove get_brgclk()
divider is calculated based on SCCR_DFBRG, with:
SCCR_DFBRG 00 => divider 1 = 1 << 0
SCCR_DFBRG 01 => divider 4 = 1 << 2
SCCR_DFBRG 10 => divider 16 = 1 << 4
SCCR_DFBRG 11 => divider 64 = 1 << 6
This can be easily converted to a single shift operation:
divider = 1 << (SCCR_DFBRG * 2)
Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Diffstat (limited to 'common/malloc_simple.c')
0 files changed, 0 insertions, 0 deletions