u-boot-brain/arch/powerpc/cpu/mpc8xx
Christophe Leroy 7a0a550c7f 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>
2017-07-22 22:22:47 -04:00
..
config.mk powerpc: Partialy restore core of mpc8xx 2017-07-08 15:55:26 -04:00
cpu_init.c powerpc, 8xx: Migrate to Kconfig 2017-07-08 15:56:01 -04:00
cpu.c powerpc, 8xx: move FEC Ethernet driver in drivers/net 2017-07-08 15:56:02 -04:00
fdt.c powerpc, 8xx: Properly set CPM frequency in the device tree 2017-07-08 15:55:37 -04:00
immap.c powerpc, 8xx: Handle checkpatch errors and some of the warnings/checks 2017-07-08 15:55:34 -04:00
interrupts.c powerpc, 8xx: Handle checkpatch errors and some of the warnings/checks 2017-07-08 15:55:34 -04:00
Kconfig powerpc, 8xx: Add support for MCR3000 board from CSSI 2017-07-08 15:56:06 -04:00
Makefile powerpc, 8xx: move Serial driver to drivers/serial/ 2017-07-08 15:56:04 -04:00
reginfo.c powerpc, 8xx: Handle checkpatch errors and some of the warnings/checks 2017-07-08 15:55:34 -04:00
speed.c powerpc, 8xx: Simplify brgclk calculation and remove get_brgclk() 2017-07-22 22:22:47 -04:00
start.S powerpc: Partialy restore core of mpc8xx 2017-07-08 15:55:26 -04:00
traps.c powerpc, 8xx: Handle checkpatch errors and some of the warnings/checks 2017-07-08 15:55:34 -04:00