esp32s2-saola-1: Use cache-related definitions from Kconfig

Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
This commit is contained in:
Gustavo Henrique Nihei
2022-03-23 14:54:53 -03:00
committed by Alan Carvalho de Assis
parent bc071ec243
commit 7cb8f02ecc
@@ -16,20 +16,6 @@
#include <nuttx/config.h>
#ifdef CONFIG_ESP32S2_INSTRUCTION_CACHE_8KB
# define CONFIG_ESP32S2_INSTRUCTION_CACHE_SIZE 0x2000
#else
# define CONFIG_ESP32S2_INSTRUCTION_CACHE_SIZE 0x4000
#endif
#ifdef CONFIG_ESP32S2_DATA_CACHE_0KB
# define CONFIG_ESP32S2_DATA_CACHE_SIZE 0
#elif defined CONFIG_ESP32S2_DATA_CACHE_8KB
# define CONFIG_ESP32S2_DATA_CACHE_SIZE 0x2000
#else
# define CONFIG_ESP32S2_DATA_CACHE_SIZE 0x4000
#endif
#define RAM_IRAM_START 0x40020000
#define RAM_DRAM_START 0x3ffb0000