u-boot-brain/arch/mips
Weijie Gao a60c1e6d6b mips: add a mtmips-specific field to architecture-specific global data
SoCs of mtmips can use different CPU frequencies depending on the HW/SW
configurations. For example mt7628 uses 580MHz clock if the input xtal
frequency is 40MHz, and 575MHz clock if the xtal is 25MHz. Upon cold boot
the CPU uses the xtal frequency directly.

So hardcoding the timer frequency (half of the CPU frequency) in
CONFIG_SYS_MIPS_TIMER_FREQ is not a good idea for this case.

This patch adds a mtmips-specific field timer_freq to arch_global_data.
This field will be used later in mtmips-specific get_tbclk() to provide
accurate timer frequency in different boot stage.

Reviewed-by: Stefan Roese <sr@denx.de>
Reviewed-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
Signed-off-by: Weijie Gao <weijie.gao@mediatek.com>
2020-04-27 20:29:33 +02:00
..
cpu mips: add an option to enable u_boot_list section for SPL loaders in u-boot-spl.lds 2020-04-27 20:29:33 +02:00
dts mips: mtmips: make use of sysreset-resetctrl for mt7628 soc 2020-04-27 20:29:33 +02:00
include/asm mips: add a mtmips-specific field to architecture-specific global data 2020-04-27 20:29:33 +02:00
lib mips: spl: Flush cache before jumping to U-Boot proper 2020-04-27 20:29:33 +02:00
mach-ath79 common: Move hang() to the same header as panic() 2020-01-17 17:53:40 -05:00
mach-bmips bmips: swapping IO space isn't required 2018-12-10 18:46:45 +01:00
mach-jz47xx common: Move hang() to the same header as panic() 2020-01-17 17:53:40 -05:00
mach-mscc mips: vcoreiii: Fix cache coherency issues 2020-04-09 18:55:59 +02:00
mach-mtmips mips: mtmips: make use of sysreset-resetctrl for mt7628 soc 2020-04-27 20:29:33 +02:00
mach-pic32 dm: core: Create a new header file for 'compat' features 2020-02-05 19:33:46 -07:00
config.mk kconfig / kbuild: Re-sync with Linux 4.19 2020-04-10 11:18:32 -04:00
Kconfig mips: add an option to enable u_boot_list section for SPL loaders in u-boot-spl.lds 2020-04-27 20:29:33 +02:00
Makefile mips: rename mach-mt7620 to mach-mtmips 2019-05-03 16:43:11 +02:00
Makefile.postlink SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00