diff options
Diffstat (limited to 'arch/blackfin/Kconfig')
-rw-r--r-- | arch/blackfin/Kconfig | 84 |
1 files changed, 60 insertions, 24 deletions
diff --git a/arch/blackfin/Kconfig b/arch/blackfin/Kconfig index 3640cdc38aac..c56fd3eb7c10 100644 --- a/arch/blackfin/Kconfig +++ b/arch/blackfin/Kconfig | |||
@@ -223,6 +223,7 @@ endchoice | |||
223 | 223 | ||
224 | config SMP | 224 | config SMP |
225 | depends on BF561 | 225 | depends on BF561 |
226 | select GENERIC_TIME | ||
226 | bool "Symmetric multi-processing support" | 227 | bool "Symmetric multi-processing support" |
227 | ---help--- | 228 | ---help--- |
228 | This enables support for systems with more than one CPU, | 229 | This enables support for systems with more than one CPU, |
@@ -241,12 +242,6 @@ config IRQ_PER_CPU | |||
241 | depends on SMP | 242 | depends on SMP |
242 | default y | 243 | default y |
243 | 244 | ||
244 | config TICK_SOURCE_SYSTMR0 | ||
245 | bool | ||
246 | select BFIN_GPTIMERS | ||
247 | depends on SMP | ||
248 | default y | ||
249 | |||
250 | config BF_REV_MIN | 245 | config BF_REV_MIN |
251 | int | 246 | int |
252 | default 0 if (BF51x || BF52x || (BF54x && !BF54xM)) | 247 | default 0 if (BF51x || BF52x || (BF54x && !BF54xM)) |
@@ -263,8 +258,8 @@ config BF_REV_MAX | |||
263 | 258 | ||
264 | choice | 259 | choice |
265 | prompt "Silicon Rev" | 260 | prompt "Silicon Rev" |
266 | default BF_REV_0_1 if (BF51x || BF52x || (BF54x && !BF54xM)) | 261 | default BF_REV_0_0 if (BF51x || BF52x) |
267 | default BF_REV_0_2 if (BF534 || BF536 || BF537) | 262 | default BF_REV_0_2 if (BF534 || BF536 || BF537 || (BF54x && !BF54xM)) |
268 | default BF_REV_0_3 if (BF531 || BF532 || BF533 || BF54xM || BF561) | 263 | default BF_REV_0_3 if (BF531 || BF532 || BF533 || BF54xM || BF561) |
269 | 264 | ||
270 | config BF_REV_0_0 | 265 | config BF_REV_0_0 |
@@ -607,7 +602,6 @@ source kernel/Kconfig.hz | |||
607 | 602 | ||
608 | config GENERIC_TIME | 603 | config GENERIC_TIME |
609 | bool "Generic time" | 604 | bool "Generic time" |
610 | depends on !SMP | ||
611 | default y | 605 | default y |
612 | 606 | ||
613 | config GENERIC_CLOCKEVENTS | 607 | config GENERIC_CLOCKEVENTS |
@@ -615,12 +609,26 @@ config GENERIC_CLOCKEVENTS | |||
615 | depends on GENERIC_TIME | 609 | depends on GENERIC_TIME |
616 | default y | 610 | default y |
617 | 611 | ||
612 | choice | ||
613 | prompt "Kernel Tick Source" | ||
614 | depends on GENERIC_CLOCKEVENTS | ||
615 | default TICKSOURCE_CORETMR | ||
616 | |||
617 | config TICKSOURCE_GPTMR0 | ||
618 | bool "Gptimer0 (SCLK domain)" | ||
619 | select BFIN_GPTIMERS | ||
620 | depends on !IPIPE | ||
621 | |||
622 | config TICKSOURCE_CORETMR | ||
623 | bool "Core timer (CCLK domain)" | ||
624 | |||
625 | endchoice | ||
626 | |||
618 | config CYCLES_CLOCKSOURCE | 627 | config CYCLES_CLOCKSOURCE |
619 | bool "Use 'CYCLES' as a clocksource (EXPERIMENTAL)" | 628 | bool "Use 'CYCLES' as a clocksource" |
620 | depends on EXPERIMENTAL | ||
621 | depends on GENERIC_CLOCKEVENTS | 629 | depends on GENERIC_CLOCKEVENTS |
622 | depends on !BFIN_SCRATCH_REG_CYCLES | 630 | depends on !BFIN_SCRATCH_REG_CYCLES |
623 | default n | 631 | depends on !SMP |
624 | help | 632 | help |
625 | If you say Y here, you will enable support for using the 'cycles' | 633 | 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 | 634 | registers as a clock source. Doing so means you will be unable to |
@@ -628,6 +636,11 @@ config CYCLES_CLOCKSOURCE | |||
628 | still be able to read it (such as for performance monitoring), but | 636 | still be able to read it (such as for performance monitoring), but |
629 | writing the registers will most likely crash the kernel. | 637 | writing the registers will most likely crash the kernel. |
630 | 638 | ||
639 | config GPTMR0_CLOCKSOURCE | ||
640 | bool "Use GPTimer0 as a clocksource (higher rating)" | ||
641 | depends on GENERIC_CLOCKEVENTS | ||
642 | depends on !TICKSOURCE_GPTMR0 | ||
643 | |||
631 | source kernel/time/Kconfig | 644 | source kernel/time/Kconfig |
632 | 645 | ||
633 | comment "Misc" | 646 | comment "Misc" |
@@ -808,7 +821,7 @@ config APP_STACK_L1 | |||
808 | config EXCEPTION_L1_SCRATCH | 821 | config EXCEPTION_L1_SCRATCH |
809 | bool "Locate exception stack in L1 Scratch Memory" | 822 | bool "Locate exception stack in L1 Scratch Memory" |
810 | default n | 823 | default n |
811 | depends on !APP_STACK_L1 && !SYSCALL_TAB_L1 | 824 | depends on !APP_STACK_L1 |
812 | help | 825 | help |
813 | Whenever an exception occurs, use the L1 Scratch memory for | 826 | Whenever an exception occurs, use the L1 Scratch memory for |
814 | stack storage. You cannot place the stacks of FLAT binaries | 827 | stack storage. You cannot place the stacks of FLAT binaries |
@@ -901,7 +914,7 @@ config BFIN_ICACHE_LOCK | |||
901 | bool "Enable Instruction Cache Locking" | 914 | bool "Enable Instruction Cache Locking" |
902 | 915 | ||
903 | choice | 916 | choice |
904 | prompt "Policy" | 917 | prompt "External memory cache policy" |
905 | depends on BFIN_DCACHE | 918 | depends on BFIN_DCACHE |
906 | default BFIN_WB if !SMP | 919 | default BFIN_WB if !SMP |
907 | default BFIN_WT if SMP | 920 | default BFIN_WT if SMP |
@@ -942,12 +955,22 @@ config BFIN_WT | |||
942 | 955 | ||
943 | endchoice | 956 | endchoice |
944 | 957 | ||
945 | config BFIN_L2_CACHEABLE | 958 | choice |
946 | bool "Cache L2 SRAM" | 959 | prompt "L2 SRAM cache policy" |
947 | depends on (BFIN_DCACHE || BFIN_ICACHE) && (BF54x || (BF561 && !SMP)) | 960 | depends on (BF54x || BF561) |
948 | default n | 961 | default BFIN_L2_WT |
949 | help | 962 | config BFIN_L2_WB |
950 | Select to make L2 SRAM cacheable in L1 data and instruction cache. | 963 | bool "Write back" |
964 | depends on !SMP | ||
965 | |||
966 | config BFIN_L2_WT | ||
967 | bool "Write through" | ||
968 | depends on !SMP | ||
969 | |||
970 | config BFIN_L2_NOT_CACHED | ||
971 | bool "Not cached" | ||
972 | |||
973 | endchoice | ||
951 | 974 | ||
952 | config MPU | 975 | config MPU |
953 | bool "Enable the memory protection unit (EXPERIMENTAL)" | 976 | bool "Enable the memory protection unit (EXPERIMENTAL)" |
@@ -1011,21 +1034,34 @@ endmenu | |||
1011 | 1034 | ||
1012 | menu "EBIU_AMBCTL Control" | 1035 | menu "EBIU_AMBCTL Control" |
1013 | config BANK_0 | 1036 | config BANK_0 |
1014 | hex "Bank 0" | 1037 | hex "Bank 0 (AMBCTL0.L)" |
1015 | default 0x7BB0 | 1038 | default 0x7BB0 |
1039 | help | ||
1040 | These are the low 16 bits of the EBIU_AMBCTL0 MMR which are | ||
1041 | used to control the Asynchronous Memory Bank 0 settings. | ||
1016 | 1042 | ||
1017 | config BANK_1 | 1043 | config BANK_1 |
1018 | hex "Bank 1" | 1044 | hex "Bank 1 (AMBCTL0.H)" |
1019 | default 0x7BB0 | 1045 | default 0x7BB0 |
1020 | default 0x5558 if BF54x | 1046 | default 0x5558 if BF54x |
1047 | help | ||
1048 | These are the high 16 bits of the EBIU_AMBCTL0 MMR which are | ||
1049 | used to control the Asynchronous Memory Bank 1 settings. | ||
1021 | 1050 | ||
1022 | config BANK_2 | 1051 | config BANK_2 |
1023 | hex "Bank 2" | 1052 | hex "Bank 2 (AMBCTL1.L)" |
1024 | default 0x7BB0 | 1053 | default 0x7BB0 |
1054 | help | ||
1055 | These are the low 16 bits of the EBIU_AMBCTL1 MMR which are | ||
1056 | used to control the Asynchronous Memory Bank 2 settings. | ||
1025 | 1057 | ||
1026 | config BANK_3 | 1058 | config BANK_3 |
1027 | hex "Bank 3" | 1059 | hex "Bank 3 (AMBCTL1.H)" |
1028 | default 0x99B3 | 1060 | default 0x99B3 |
1061 | help | ||
1062 | These are the high 16 bits of the EBIU_AMBCTL1 MMR which are | ||
1063 | used to control the Asynchronous Memory Bank 3 settings. | ||
1064 | |||
1029 | endmenu | 1065 | endmenu |
1030 | 1066 | ||
1031 | config EBIU_MBSCTLVAL | 1067 | config EBIU_MBSCTLVAL |