From f9ab7d12e2350650ba8aff714c6f620b750a7045 Mon Sep 17 00:00:00 2001
From: Pavlo Hamov
Date: Tue, 12 Oct 2021 17:10:34 +0300
Subject: [PATCH] soc: esp32s2: Fix RAM offset calculation
Depending on cache setting RAM start must be adjusted.
Fix offset selection
Signed-off-by: Pavlo Hamov
---
soc/xtensa/esp32s2/Kconfig.soc | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/soc/xtensa/esp32s2/Kconfig.soc b/soc/xtensa/esp32s2/Kconfig.soc
index 4ce2da2e5b0..81675c0646f 100644
--- a/soc/xtensa/esp32s2/Kconfig.soc
+++ b/soc/xtensa/esp32s2/Kconfig.soc
@@ -60,14 +60,14 @@ endchoice
config ESP32S2_INSTRUCTION_CACHE_SIZE
hex
- default 0x2000
default 0x4000 if ESP32S2_INSTRUCTION_CACHE_16KB
+ default 0x2000
config ESP32S2_DATA_CACHE_SIZE
hex
- default 0x0000
default 0x2000 if ESP32S2_DATA_CACHE_8KB
default 0x4000 if ESP32S2_DATA_CACHE_16KB
+ default 0x0000
choice ESP32S2_UNIVERSAL_MAC_ADDRESSES
bool "Number of universally administered (by IEEE) MAC address"