x86: tsc: Move tsc_timer.c to drivers/timer
authorBin Meng <bmeng.cn@gmail.com>
Fri, 13 Nov 2015 08:11:24 +0000 (00:11 -0800)
committerSimon Glass <sjg@chromium.org>
Tue, 1 Dec 2015 13:26:35 +0000 (06:26 -0700)
To group all dm timer drivers together, move tsc timer to
drivers/timer directory.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Acked-by: Simon Glass <sjg@chromium.org>
arch/x86/lib/Makefile
drivers/timer/Kconfig
drivers/timer/Makefile
drivers/timer/tsc_timer.c [moved from arch/x86/lib/tsc_timer.c with 100% similarity]
include/configs/x86-common.h

index d676e2c..cd5ecb6 100644 (file)
@@ -34,7 +34,6 @@ obj-$(CONFIG_GENERATE_SMBIOS_TABLE) += smbios.o
 obj-y  += string.o
 obj-$(CONFIG_GENERATE_ACPI_TABLE) += acpi_table.o
 obj-y  += tables.o
-obj-$(CONFIG_SYS_X86_TSC_TIMER)        += tsc_timer.o
 obj-$(CONFIG_CMD_ZBOOT)        += zimage.o
 obj-$(CONFIG_HAVE_FSP) += fsp/
 
index 029af64..2b10d2b 100644 (file)
@@ -23,4 +23,11 @@ config SANDBOX_TIMER
          Select this to enable an emulated timer for sandbox. It gets
          time from host os.
 
+config X86_TSC_TIMER
+       bool "x86 Time-Stamp Counter (TSC) timer support"
+       depends on TIMER && X86
+       default y if X86
+       help
+         Select this to enable Time-Stamp Counter (TSC) timer for x86.
+
 endmenu
index 300946e..fe954ec 100644 (file)
@@ -7,3 +7,4 @@
 obj-$(CONFIG_TIMER)            += timer-uclass.o
 obj-$(CONFIG_ALTERA_TIMER)     += altera_timer.o
 obj-$(CONFIG_SANDBOX_TIMER)    += sandbox_timer.o
+obj-$(CONFIG_X86_TSC_TIMER)    += tsc_timer.o
index 65d50ca..70ec103 100644 (file)
  * CPU Features
  */
 
-#define CONFIG_SYS_X86_TSC_TIMER
-
 #define CONFIG_SYS_STACK_SIZE                  (32 * 1024)
 #define CONFIG_SYS_MONITOR_BASE                CONFIG_SYS_TEXT_BASE
 #define CONFIG_SYS_MALLOC_LEN                  0x200000