]> git.sur5r.net Git - u-boot/commit
x86: timer: tsc: Allow specifying clock rate from device tree again
authorBin Meng <bmeng.cn@gmail.com>
Sat, 23 Jun 2018 10:03:47 +0000 (03:03 -0700)
committerBin Meng <bmeng.cn@gmail.com>
Mon, 2 Jul 2018 01:23:28 +0000 (09:23 +0800)
commit94e72a6bd994078674188bee2efb727a110a1cc6
tree226e8ffdafc1231a7b0019e8c9a8a1d274d52fa2
parent2121bbe49c27b2b2d865fac4e4071c5a90ae90b2
x86: timer: tsc: Allow specifying clock rate from device tree again

With the introduction of early timer support in the TSC driver,
the capability of getting clock rate from device tree was lost
unfortunately. Now we bring such functionality back, but with a
limitation that when TSC is used as early timer, specifying clock
rate from device tree does not work.

This fixes random boot failures seen on QEMU targets: printing "TSC
frequency is ZERO" and reset forever.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/timer/tsc_timer.c