summaryrefslogtreecommitdiff
path: root/arch/x86/include
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
parent076bb44b0ef85747fec786a930335956614fb7d6 (diff)
downloadu-boot-imx-80de049561f4d560c50341562b7e93ff45a1d8a0.zip
u-boot-imx-80de049561f4d560c50341562b7e93ff45a1d8a0.tar.gz
u-boot-imx-80de049561f4d560c50341562b7e93ff45a1d8a0.tar.bz2
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')
-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 c3ccd4f..4116de1 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