xtensa/esp32: Avoid init PSRAM when SPIRAM is not enabled
This commit is contained in:
parent
d3700649c0
commit
6c37d9ff80
@ -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
|
||||
|
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user