@@ -1105,9 +1105,12 @@ config CACHE_MANAGEMENT
1105
1105
This option enables the cache management functions backed by arch or
1106
1106
driver code.
1107
1107
1108
+ if CACHE_MANAGEMENT
1109
+
1110
+ if DCACHE
1111
+
1108
1112
config DCACHE_LINE_SIZE_DETECT
1109
1113
bool "Detect d-cache line size at runtime"
1110
- depends on CACHE_MANAGEMENT && DCACHE
1111
1114
help
1112
1115
This option enables querying some architecture-specific hardware for
1113
1116
finding the d-cache line size at the expense of taking more memory and
@@ -1119,7 +1122,7 @@ config DCACHE_LINE_SIZE_DETECT
1119
1122
1120
1123
config DCACHE_LINE_SIZE
1121
1124
int "d-cache line size"
1122
- depends on CACHE_MANAGEMENT && DCACHE && !DCACHE_LINE_SIZE_DETECT
1125
+ depends on !DCACHE_LINE_SIZE_DETECT
1123
1126
default 0
1124
1127
help
1125
1128
Size in bytes of a CPU d-cache line. If this is set to 0 the value is
@@ -1128,9 +1131,12 @@ config DCACHE_LINE_SIZE
1128
1131
1129
1132
Detect automatically at runtime by selecting DCACHE_LINE_SIZE_DETECT.
1130
1133
1134
+ endif # DCACHE
1135
+
1136
+ if ICACHE
1137
+
1131
1138
config ICACHE_LINE_SIZE_DETECT
1132
1139
bool "Detect i-cache line size at runtime"
1133
- depends on CACHE_MANAGEMENT && ICACHE
1134
1140
help
1135
1141
This option enables querying some architecture-specific hardware for
1136
1142
finding the i-cache line size at the expense of taking more memory and
@@ -1142,17 +1148,18 @@ config ICACHE_LINE_SIZE_DETECT
1142
1148
1143
1149
config ICACHE_LINE_SIZE
1144
1150
int "i-cache line size"
1145
- depends on CACHE_MANAGEMENT && ICACHE && !ICACHE_LINE_SIZE_DETECT
1151
+ depends on !ICACHE_LINE_SIZE_DETECT
1146
1152
default 0
1147
1153
help
1148
1154
Size in bytes of a CPU i-cache line. If this is set to 0 the value is
1149
1155
obtained from the 'i-cache-line-size' DT property instead if present.
1150
1156
1151
1157
Detect automatically at runtime by selecting ICACHE_LINE_SIZE_DETECT.
1152
1158
1159
+ endif # ICACHE
1160
+
1153
1161
choice CACHE_TYPE
1154
1162
prompt "Cache type"
1155
- depends on CACHE_MANAGEMENT
1156
1163
default ARCH_CACHE
1157
1164
1158
1165
config ARCH_CACHE
@@ -1167,6 +1174,8 @@ config EXTERNAL_CACHE
1167
1174
1168
1175
endchoice
1169
1176
1177
+ endif # CACHE_MANAGEMENT
1178
+
1170
1179
endmenu
1171
1180
1172
1181
config ARCH
0 commit comments