aboutsummaryrefslogtreecommitdiffstats
path: root/arch/blackfin/Kconfig
diff options
context:
space:
mode:
authorGraf Yang <graf.yang@analog.com>2009-05-07 00:09:15 -0400
committerMike Frysinger <vapier@gentoo.org>2009-06-12 06:11:41 -0400
commit5ba766752d14a741aa2d7a3c321917a310b34afb (patch)
treea97d8174cded42843de44b08d613c350b28a2729 /arch/blackfin/Kconfig
parenta261eec0009b6093727fb7a59b12a10c6c981714 (diff)
Blackfin: work around anomaly 05000220
When possible, work around anomaly 05000220 (external memory is write back cached, but L2 is not cached). If not possible, detect the conditions at build time and reject any qualifying configurations. 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/Kconfig24
1 files changed, 17 insertions, 7 deletions
diff --git a/arch/blackfin/Kconfig b/arch/blackfin/Kconfig
index c04e7a4836f2..f1a7969b46ca 100644
--- a/arch/blackfin/Kconfig
+++ b/arch/blackfin/Kconfig
@@ -913,7 +913,7 @@ config BFIN_ICACHE_LOCK
913 bool "Enable Instruction Cache Locking" 913 bool "Enable Instruction Cache Locking"
914 914
915choice 915choice
916 prompt "Policy" 916 prompt "External memory cache policy"
917 depends on BFIN_DCACHE 917 depends on BFIN_DCACHE
918 default BFIN_WB if !SMP 918 default BFIN_WB if !SMP
919 default BFIN_WT if SMP 919 default BFIN_WT if SMP
@@ -954,12 +954,22 @@ config BFIN_WT
954 954
955endchoice 955endchoice
956 956
957config BFIN_L2_CACHEABLE 957choice
958 bool "Cache L2 SRAM" 958 prompt "L2 SRAM cache policy"
959 depends on (BFIN_DCACHE || BFIN_ICACHE) && (BF54x || (BF561 && !SMP)) 959 depends on (BF54x || BF561)
960 default n 960 default BFIN_L2_WT
961 help 961config BFIN_L2_WB
962 Select to make L2 SRAM cacheable in L1 data and instruction cache. 962 bool "Write back"
963 depends on !SMP
964
965config BFIN_L2_WT
966 bool "Write through"
967 depends on !SMP
968
969config BFIN_L2_NOT_CACHED
970 bool "Not cached"
971
972endchoice
963 973
964config MPU 974config MPU
965 bool "Enable the memory protection unit (EXPERIMENTAL)" 975 bool "Enable the memory protection unit (EXPERIMENTAL)"