commit | 297cbacb6ba1b0c5299b5740264897a6d1b16e31 | [log] [tgz] |
---|---|---|
author | Christophe Leroy <christophe.leroy@c-s.fr> | Thu Jul 13 15:09:44 2017 +0200 |
committer | Tom Rini <trini@konsulko.com> | Sat Jul 22 22:22:47 2017 -0400 |
tree | 8d378511c850861725f80b68c4637de7e7890457 | |
parent | 1ff01905d530e1a734fb03e81709957a7b9ee421 [diff] |
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>