diff options
author | Graf Yang <graf.yang@analog.com> | 2009-05-07 00:09:15 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2009-06-12 06:11:41 -0400 |
commit | 5ba766752d14a741aa2d7a3c321917a310b34afb (patch) | |
tree | a97d8174cded42843de44b08d613c350b28a2729 /arch/blackfin/Kconfig | |
parent | a261eec0009b6093727fb7a59b12a10c6c981714 (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/Kconfig | 24 |
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 | ||
915 | choice | 915 | choice |
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 | ||
955 | endchoice | 955 | endchoice |
956 | 956 | ||
957 | config BFIN_L2_CACHEABLE | 957 | choice |
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 | 961 | config 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 | |||
965 | config BFIN_L2_WT | ||
966 | bool "Write through" | ||
967 | depends on !SMP | ||
968 | |||
969 | config BFIN_L2_NOT_CACHED | ||
970 | bool "Not cached" | ||
971 | |||
972 | endchoice | ||
963 | 973 | ||
964 | config MPU | 974 | config MPU |
965 | bool "Enable the memory protection unit (EXPERIMENTAL)" | 975 | bool "Enable the memory protection unit (EXPERIMENTAL)" |