u-boot/arch/powerpc/cpu
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
..
mpc8xx powerpc, 8xx: Simplify brgclk calculation and remove get_brgclk() 2017-07-22 22:22:47 -04:00
mpc8xxx powerpc: Drop probecpu() in favour of arch_cpu_init() 2017-01-25 17:38:41 -05:00
mpc83xx Convert CONFIG_CMD_SATA to Kconfig 2017-07-11 10:08:19 -06:00
mpc85xx sata: Move drivers into new drivers/ata directory 2017-07-11 10:08:19 -06:00
mpc86xx Convert CONFIG_SCSI to Kconfig 2017-07-11 10:08:19 -06:00
Makefile Various Makefiles: Add SPDX-License-Identifier tags 2015-11-10 09:19:52 -05:00