]> git.baikalelectronics.ru Git - uboot.git/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)
commit3de85c10a4f5a6102887c961f43dee81d9b9956f
tree226e8ffdafc1231a7b0019e8c9a8a1d274d52fa2
parentd8976bde65271e4e067356bc366c4f8f3ce76133
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