soc: esp32s2: Fix RAM offset calculation

Depending on cache setting RAM start must be adjusted.
Fix offset selection

Signed-off-by: Pavlo Hamov <p.hamov@venstar.com>
This commit is contained in:
Pavlo Hamov 2021-10-12 17:10:34 +03:00 committed by Christopher Friedt
parent 875c75c4f9
commit f9ab7d12e2

View file

@ -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"