u-boot/arch/powerpc
Mario Six 0f06f57c28 mpc83xx: Replace CONFIG_83XX_CLKIN in calculations
CONFIG_SYS_CLK_FREQ is the standard way to set the system clock
frequency. On MPC83xx, CONFIG_83XX_CLKIN is used for this purpose.
Hence, the obvious way is to replace CONFIG_83XX_CLKIN with
CONFIG_SYS_CLK_FREQ.

A few MPC83xx boards use the CONFIG_83XX_CLKIN variable for computing
CONFIG_SYS_NS16550_CLK. This makes it harder to replace
CONFIG_83XX_CLKIN.

But the value of the multiplicator can be read from the SPMR register.

Hence, replace the static calculations with a call to a new get_bus_freq
function, as other architectures do.

Signed-off-by: Mario Six <mario.six@gdsys.cc>
2019-05-21 07:51:40 +02:00
..
cpu mpc83xx: Replace CONFIG_83XX_CLKIN in calculations 2019-05-21 07:51:40 +02:00
dts powerpc: fix arch/powerpc/dts/Makefile 2019-03-22 12:15:10 -04:00
include/asm powerpc: Add LSDMR config values 2019-05-20 13:50:34 +02:00
lib timer: Add MPC83xx timer driver 2018-09-18 00:01:18 -06:00
config.mk SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
Kconfig watchdog: mpc8xx_wdt: Watchdog driver and macros cleanup 2019-04-26 09:16:32 +02:00
Makefile SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00