diff options
author | Stefan Agner <stefan@agner.ch> | 2014-09-24 12:20:10 -0400 |
---|---|---|
committer | Shawn Guo <shawn.guo@linaro.org> | 2014-11-23 01:56:18 -0500 |
commit | 2a61cba71fba5b73b11e0de665869a6ee619af0e (patch) | |
tree | e37f576747d1b2449e4d0b9049f4d42aa0443bc3 /arch | |
parent | bc4abc3e5f40edc43e54da41b7acf8222e9cb888 (diff) |
ARM: vf610: Add ARM Global Timer clocksource option
Add the ARM Global Timer as clocksource/scheduler clock option and
use it as default scheduler clock. This leaves the PIT timer for
other users e.g. the secondary Cortex-M4 core. Also, the Global Timer
has double the precission (running at pheripheral clock compared to
IPG clock) and a 64-bit incrementing counter register. We still keep
the PIT timer as an secondary option in case the ARM Global Timer is
not available.
Signed-off-by: Stefan Agner <stefan@agner.ch>
Acked-by: Bill Pringlemeir <bpringlemeir@nbsps.com>
Signed-off-by: Shawn Guo <shawn.guo@freescale.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-imx/Kconfig | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/arch/arm/mach-imx/Kconfig b/arch/arm/mach-imx/Kconfig index 11b2957f792b..e26b0fdd72db 100644 --- a/arch/arm/mach-imx/Kconfig +++ b/arch/arm/mach-imx/Kconfig | |||
@@ -633,12 +633,31 @@ config SOC_VF610 | |||
633 | bool "Vybrid Family VF610 support" | 633 | bool "Vybrid Family VF610 support" |
634 | select ARM_GIC | 634 | select ARM_GIC |
635 | select PINCTRL_VF610 | 635 | select PINCTRL_VF610 |
636 | select VF_PIT_TIMER | ||
637 | select PL310_ERRATA_769419 if CACHE_L2X0 | 636 | select PL310_ERRATA_769419 if CACHE_L2X0 |
638 | 637 | ||
639 | help | 638 | help |
640 | This enable support for Freescale Vybrid VF610 processor. | 639 | This enable support for Freescale Vybrid VF610 processor. |
641 | 640 | ||
641 | choice | ||
642 | prompt "Clocksource for scheduler clock" | ||
643 | depends on SOC_VF610 | ||
644 | default VF_USE_ARM_GLOBAL_TIMER | ||
645 | |||
646 | config VF_USE_ARM_GLOBAL_TIMER | ||
647 | bool "Use ARM Global Timer" | ||
648 | select ARM_GLOBAL_TIMER | ||
649 | select CLKSRC_ARM_GLOBAL_TIMER_SCHED_CLOCK | ||
650 | help | ||
651 | Use the ARM Global Timer as clocksource | ||
652 | |||
653 | config VF_USE_PIT_TIMER | ||
654 | bool "Use PIT timer" | ||
655 | select VF_PIT_TIMER | ||
656 | help | ||
657 | Use SoC Periodic Interrupt Timer (PIT) as clocksource | ||
658 | |||
659 | endchoice | ||
660 | |||
642 | endif | 661 | endif |
643 | 662 | ||
644 | source "arch/arm/mach-imx/devices/Kconfig" | 663 | source "arch/arm/mach-imx/devices/Kconfig" |