1# Copyright (c) 2021 Espressif Systems (Shanghai) Co., Ltd. 2# SPDX-License-Identifier: Apache-2.0 3 4config SOC_ESP32S2 5 bool "ESP32S2" 6 select XTENSA 7 select ATOMIC_OPERATIONS_C 8 select DYNAMIC_INTERRUPTS 9 10if SOC_ESP32S2 11 12config IDF_TARGET_ESP32S2 13 bool "ESP32S2 as target board" 14 default y 15 16config ESPTOOLPY_FLASHFREQ_80M 17 bool 18 default y 19 20choice 21 prompt "Instruction cache line size" 22 default ESP32S2_INSTRUCTION_CACHE_LINE_32B 23 24 config ESP32S2_INSTRUCTION_CACHE_LINE_16B 25 bool "16 Bytes" 26 27 config ESP32S2_INSTRUCTION_CACHE_LINE_32B 28 bool "32 Bytes" 29 30endchoice 31 32choice 33 prompt "Instruction cache size" 34 default ESP32S2_INSTRUCTION_CACHE_8KB 35 36 config ESP32S2_INSTRUCTION_CACHE_8KB 37 bool "8KB instruction cache size" 38 39 config ESP32S2_INSTRUCTION_CACHE_16KB 40 bool "16KB instruction cache size" 41 42endchoice 43 44choice 45 prompt "Data cache size" 46 default ESP32S2_DATA_CACHE_0KB 47 48 config ESP32S2_DATA_CACHE_0KB 49 bool "0KB data cache size" 50 51 config ESP32S2_DATA_CACHE_8KB 52 bool "8KB data cache size" 53 54 config ESP32S2_DATA_CACHE_16KB 55 bool "16KB data cache size" 56 57endchoice 58 59config ESP32S2_INSTRUCTION_CACHE_SIZE 60 hex 61 default 0x2000 62 default 0x4000 if ESP32S2_INSTRUCTION_CACHE_16KB 63 64config ESP32S2_DATA_CACHE_SIZE 65 hex 66 default 0x0000 67 default 0x2000 if ESP32S2_DATA_CACHE_8KB 68 default 0x4000 if ESP32S2_DATA_CACHE_16KB 69 70endif 71