xtensa/esp32: Avoid init PSRAM when SPIRAM is not enabled

This commit is contained in:
Alan C. Assis 2020-11-05 17:34:00 -03:00 committed by Abdelatif Guettouche
parent d3700649c0
commit 6c37d9ff80
2 changed files with 2 additions and 1 deletions

View File

@ -579,6 +579,7 @@ endchoice # ESP32_SPIRAM_SPEED
config ESP32_SPIRAM_BOOT_INIT
bool "Initialize SPI RAM during startup"
depends on ESP32_SPIRAM
default "y"
help
If this is enabled, the SPI RAM will be enabled during initial

View File

@ -93,7 +93,7 @@ void up_allocate_heap(FAR void **heap_start, size_t *heap_size)
*
****************************************************************************/
#if CONFIG_MM_REGIONS > 1
#if CONFIG_MM_REGIONS > 1 && defined(CONFIG_ESP32_SPIRAM)
void xtensa_add_region(void)
{
/* Check for any additional memory regions */