]> git.sur5r.net Git - u-boot/blobdiff - arch/x86/cpu/coreboot/timestamp.c
x86: Add TSC timer
[u-boot] / arch / x86 / cpu / coreboot / timestamp.c
index 2ca7a57bce50bfbe5fcc3ad3c42d2d65485a17f2..d26718e65bfd96c4268d9bbbe0d848c9027deaa7 100644 (file)
@@ -39,7 +39,9 @@ static struct timestamp_table *ts_table  __attribute__((section(".data")));
 void timestamp_init(void)
 {
        ts_table = lib_sysinfo.tstamp_table;
-       timer_set_tsc_base(ts_table->base_time);
+#ifdef CONFIG_SYS_X86_TSC_TIMER
+       timer_set_base(ts_table->base_time);
+#endif
        timestamp_add_now(TS_U_BOOT_INITTED);
 }