aboutsummaryrefslogtreecommitdiffstats
path: root/arch/blackfin/Kconfig
diff options
context:
space:
mode:
authorGraf Yang <graf.yang@analog.com>2009-05-15 07:01:59 -0400
committerMike Frysinger <vapier@gentoo.org>2009-06-12 06:11:37 -0400
commit1fa9be72b558c39459f98835eb86dbb4ef4da30b (patch)
treef0b71c7b7a3639285c64e3f3cbc449c3ff9eee3b /arch/blackfin/Kconfig
parent555487bbb63f527e63fecbff48c86e2c07ce5024 (diff)
Blackfin: add support for gptimer0 as a tick source
For systems where the core cycles are not a usable tick source (like SMP or cycles gets updated), enable gptimer0 as an alternative. Signed-off-by: Graf Yang <graf.yang@analog.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'arch/blackfin/Kconfig')
-rw-r--r--arch/blackfin/Kconfig32
1 files changed, 22 insertions, 10 deletions
diff --git a/arch/blackfin/Kconfig b/arch/blackfin/Kconfig
index cea2bfd64a56..c04e7a4836f2 100644
--- a/arch/blackfin/Kconfig
+++ b/arch/blackfin/Kconfig
@@ -241,12 +241,6 @@ config IRQ_PER_CPU
241 depends on SMP 241 depends on SMP
242 default y 242 default y
243 243
244config TICK_SOURCE_SYSTMR0
245 bool
246 select BFIN_GPTIMERS
247 depends on SMP
248 default y
249
250config BF_REV_MIN 244config BF_REV_MIN
251 int 245 int
252 default 0 if (BF51x || BF52x || (BF54x && !BF54xM)) 246 default 0 if (BF51x || BF52x || (BF54x && !BF54xM))
@@ -607,7 +601,6 @@ source kernel/Kconfig.hz
607 601
608config GENERIC_TIME 602config GENERIC_TIME
609 bool "Generic time" 603 bool "Generic time"
610 depends on !SMP
611 default y 604 default y
612 605
613config GENERIC_CLOCKEVENTS 606config GENERIC_CLOCKEVENTS
@@ -615,12 +608,26 @@ config GENERIC_CLOCKEVENTS
615 depends on GENERIC_TIME 608 depends on GENERIC_TIME
616 default y 609 default y
617 610
611choice
612 prompt "Kernel Tick Source"
613 depends on GENERIC_CLOCKEVENTS
614 default TICKSOURCE_CORETMR
615
616config TICKSOURCE_GPTMR0
617 bool "Gptimer0 (SCLK domain)"
618 select BFIN_GPTIMERS
619 depends on !IPIPE
620
621config TICKSOURCE_CORETMR
622 bool "Core timer (CCLK domain)"
623
624endchoice
625
618config CYCLES_CLOCKSOURCE 626config CYCLES_CLOCKSOURCE
619 bool "Use 'CYCLES' as a clocksource (EXPERIMENTAL)" 627 bool "Use 'CYCLES' as a clocksource"
620 depends on EXPERIMENTAL
621 depends on GENERIC_CLOCKEVENTS 628 depends on GENERIC_CLOCKEVENTS
622 depends on !BFIN_SCRATCH_REG_CYCLES 629 depends on !BFIN_SCRATCH_REG_CYCLES
623 default n 630 depends on !SMP
624 help 631 help
625 If you say Y here, you will enable support for using the 'cycles' 632 If you say Y here, you will enable support for using the 'cycles'
626 registers as a clock source. Doing so means you will be unable to 633 registers as a clock source. Doing so means you will be unable to
@@ -628,6 +635,11 @@ config CYCLES_CLOCKSOURCE
628 still be able to read it (such as for performance monitoring), but 635 still be able to read it (such as for performance monitoring), but
629 writing the registers will most likely crash the kernel. 636 writing the registers will most likely crash the kernel.
630 637
638config GPTMR0_CLOCKSOURCE
639 bool "Use GPTimer0 as a clocksource (higher rating)"
640 depends on GENERIC_CLOCKEVENTS
641 depends on !TICKSOURCE_GPTMR0
642
631source kernel/time/Kconfig 643source kernel/time/Kconfig
632 644
633comment "Misc" 645comment "Misc"