esp-idf/components/esp_system/port/soc/esp32p4/Kconfig.cache

48 lines
1.3 KiB
Plaintext
Raw Normal View History

2023-07-21 00:36:57 -04:00
menu "Cache config"
choice CACHE_L2_CACHE_SIZE
2023-07-21 00:36:57 -04:00
prompt "L2 cache size"
default CACHE_L2_CACHE_128KB
2023-07-21 00:36:57 -04:00
help
L2 cache size to be set on application startup.
config CACHE_L2_CACHE_128KB
2023-07-21 00:36:57 -04:00
bool "128KB"
config CACHE_L2_CACHE_256KB
2023-07-21 00:36:57 -04:00
bool "256KB"
config CACHE_L2_CACHE_512KB
2023-07-21 00:36:57 -04:00
bool "512KB"
endchoice
config CACHE_L2_CACHE_SIZE
2023-07-21 00:36:57 -04:00
hex
default 0x20000 if CACHE_L2_CACHE_128KB
default 0x40000 if CACHE_L2_CACHE_256KB
default 0x80000 if CACHE_L2_CACHE_512KB
2023-07-21 00:36:57 -04:00
choice CACHE_L2_CACHE_LINE_SIZE
2023-07-21 00:36:57 -04:00
prompt "L2 cache line size"
default CACHE_L2_CACHE_LINE_64B if CACHE_L2_CACHE_128KB
default CACHE_L2_CACHE_LINE_64B if CACHE_L2_CACHE_256KB
default CACHE_L2_CACHE_LINE_128B if CACHE_L2_CACHE_512KB
2023-07-21 00:36:57 -04:00
help
L2 cache line size to be set on application startup.
config CACHE_L2_CACHE_LINE_64B
2023-07-21 00:36:57 -04:00
bool "64 Bytes"
depends on CACHE_L2_CACHE_128KB || CACHE_L2_CACHE_256KB
config CACHE_L2_CACHE_LINE_128B
2023-07-21 00:36:57 -04:00
bool "128 Bytes"
endchoice
config CACHE_L2_CACHE_LINE_SIZE
2023-07-21 00:36:57 -04:00
int
default 64 if CACHE_L2_CACHE_LINE_64B
default 128 if CACHE_L2_CACHE_LINE_128B
config CACHE_L1_CACHE_LINE_SIZE
int
default 64
2023-07-21 00:36:57 -04:00
endmenu # Cache config