u-boot/arch/powerpc/cpu/mpc83xx
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
..
config.mk mpc83xx: Add support for -msingle-pic-base 2019-01-21 08:33:42 +01:00
cpu.c mpc83xx: Introduce ARCH_MPC831* 2019-05-20 13:50:34 +02:00
cpu_init.c mpc83xx: Introduce ARCH_MPC834* 2019-05-20 13:50:34 +02:00
ecc.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
fdt.c mpc83xx: Introduce ARCH_MPC831* 2019-05-20 13:50:34 +02:00
interrupts.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
Kconfig mpc83xx: Migrate legacy PCI options to Kconfig 2019-05-21 07:51:40 +02:00
law.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
Makefile SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
pci.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
pcie.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
qe_io.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
serdes.c misc: Add MPC83xx serdes driver 2018-09-18 08:12:21 -06:00
spd_sdram.c mpc83xx: Introduce ARCH_MPC834* 2019-05-20 13:50:34 +02:00
speed.c mpc83xx: Introduce ARCH_MPC837X 2019-05-20 13:50:34 +02:00
spl_minimal.c mpc83xx: Replace CONFIG_83XX_CLKIN in calculations 2019-05-21 07:51:40 +02:00
start.S mpc83xx: Add support for -msingle-pic-base 2019-01-21 08:33:42 +01:00
traps.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
u-boot-spl.lds SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
u-boot.lds SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00