diff options
author | Graf Yang <graf.yang@analog.com> | 2009-05-15 07:01:59 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2009-06-12 06:11:37 -0400 |
commit | 1fa9be72b558c39459f98835eb86dbb4ef4da30b (patch) | |
tree | f0b71c7b7a3639285c64e3f3cbc449c3ff9eee3b /arch/blackfin/Kconfig | |
parent | 555487bbb63f527e63fecbff48c86e2c07ce5024 (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/Kconfig | 32 |
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 | ||
244 | config TICK_SOURCE_SYSTMR0 | ||
245 | bool | ||
246 | select BFIN_GPTIMERS | ||
247 | depends on SMP | ||
248 | default y | ||
249 | |||
250 | config BF_REV_MIN | 244 | config 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 | ||
608 | config GENERIC_TIME | 602 | config GENERIC_TIME |
609 | bool "Generic time" | 603 | bool "Generic time" |
610 | depends on !SMP | ||
611 | default y | 604 | default y |
612 | 605 | ||
613 | config GENERIC_CLOCKEVENTS | 606 | config 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 | ||
611 | choice | ||
612 | prompt "Kernel Tick Source" | ||
613 | depends on GENERIC_CLOCKEVENTS | ||
614 | default TICKSOURCE_CORETMR | ||
615 | |||
616 | config TICKSOURCE_GPTMR0 | ||
617 | bool "Gptimer0 (SCLK domain)" | ||
618 | select BFIN_GPTIMERS | ||
619 | depends on !IPIPE | ||
620 | |||
621 | config TICKSOURCE_CORETMR | ||
622 | bool "Core timer (CCLK domain)" | ||
623 | |||
624 | endchoice | ||
625 | |||
618 | config CYCLES_CLOCKSOURCE | 626 | config 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 | ||
638 | config GPTMR0_CLOCKSOURCE | ||
639 | bool "Use GPTimer0 as a clocksource (higher rating)" | ||
640 | depends on GENERIC_CLOCKEVENTS | ||
641 | depends on !TICKSOURCE_GPTMR0 | ||
642 | |||
631 | source kernel/time/Kconfig | 643 | source kernel/time/Kconfig |
632 | 644 | ||
633 | comment "Misc" | 645 | comment "Misc" |