summaryrefslogtreecommitdiffstats
path: root/arch/x86/include/asm
diff options
context:
space:
mode:
authorBin Meng <bmeng.cn@gmail.com>2014-11-09 22:19:25 +0800
committerSimon Glass <sjg@chromium.org>2014-11-21 07:24:10 +0100
commit80de049561f4d560c50341562b7e93ff45a1d8a0 (patch)
tree59476e1b5be2f28b175eba341705f3df13036cab /arch/x86/include/asm
parent076bb44b0ef85747fec786a930335956614fb7d6 (diff)
downloadblackbird-obmc-uboot-80de049561f4d560c50341562b7e93ff45a1d8a0.tar.gz
blackbird-obmc-uboot-80de049561f4d560c50341562b7e93ff45a1d8a0.zip
x86: Add quick TSC calibration via PIT
Use the same way that Linux does for quick TSC calibration via PIT when calibration via MSR fails. Signed-off-by: Bin Meng <bmeng.cn@gmail.com> Acked-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch/x86/include/asm')
-rw-r--r--arch/x86/include/asm/i8254.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/x86/include/asm/i8254.h b/arch/x86/include/asm/i8254.h
index c3ccd4f906..4116de1f07 100644
--- a/arch/x86/include/asm/i8254.h
+++ b/arch/x86/include/asm/i8254.h
@@ -36,4 +36,7 @@
#define PIT_CMD_MODE4 0x08 /* Select mode 4 */
#define PIT_CMD_MODE5 0x0A /* Select mode 5 */
+/* The clock frequency of the i8253/i8254 PIT */
+#define PIT_TICK_RATE 1193182ul
+
#endif
OpenPOWER on IntegriCloud