]> git.baikalelectronics.ru Git - uboot.git/commit
x86: tsc: Add support for native calibration of TSC freq
authorBernhard Messerklinger <bernhard.messerklinger@br-automation.com>
Mon, 7 Jan 2019 11:14:40 +0000 (12:14 +0100)
committerBin Meng <bmeng.cn@gmail.com>
Tue, 12 Feb 2019 06:37:16 +0000 (14:37 +0800)
commitf90426248bf8db39900317cde1551cef4d713f9f
treee299ce7fc070030228b0ea21317def7da7d07224
parent732867efff40949fca1850675b982b28eb758e8f
x86: tsc: Add support for native calibration of TSC freq

Add native tsc calibration function. Calibrate the tsc timer the same
way as linux does in arch/x86/kernel/tsc.c.

Fixes booting for Apollo Lake processors.

Signed-off-by: Bernhard Messerklinger <bernhard.messerklinger@br-automation.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
drivers/timer/tsc_timer.c