x86: slimbootloader: Set TSC information for tsc_timer
authorPark, Aiden <aiden.park@intel.com>
Sat, 3 Aug 2019 08:30:52 +0000 (08:30 +0000)
committerBin Meng <bmeng.cn@gmail.com>
Fri, 9 Aug 2019 14:24:02 +0000 (22:24 +0800)
commit14360bf0591c88c0af7c1792a331579443089f20
treee9e427dc9d262291d9dccb8ac3d3ebcffde8e969
parent2869c3b3de390ed7dba3d854160d9b19dd4660a3
x86: slimbootloader: Set TSC information for tsc_timer

Slim Bootloader already calibrated TSC and provides it to U-Boot.
Therefore, U-Boot does not have to re-calibrate TSC.
Configuring tsc_base and clock_rate makes x86 tsc_timer driver bypass
TSC calibration and use the provided TSC frequency.
- Get TSC frequency from performance info hob
- Set tsc_base and clock_rate for tsc_timer driver

Signed-off-by: Aiden Park <aiden.park@intel.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Tested-by: Bin Meng <bmeng.cn@gmail.com>
arch/x86/cpu/slimbootloader/slimbootloader.c
arch/x86/include/asm/arch-slimbootloader/slimbootloader.h