From a4c9da92806b543f9072003c59193b81f53026f9 Mon Sep 17 00:00:00 2001 From: Gustavo Henrique Nihei Date: Tue, 17 Jan 2023 14:29:52 -0300 Subject: [PATCH] xtensa/esp32: Fix ESP32_SPIRAM_USER_HEAP under Protected mode Signed-off-by: Gustavo Henrique Nihei --- arch/xtensa/src/esp32/esp32_psram.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/xtensa/src/esp32/esp32_psram.c b/arch/xtensa/src/esp32/esp32_psram.c index 16e42b01aa..fb87e0ed8e 100644 --- a/arch/xtensa/src/esp32/esp32_psram.c +++ b/arch/xtensa/src/esp32/esp32_psram.c @@ -715,7 +715,7 @@ psram_cmd_recv_start(psram_spi_num_t spi_num, while (getreg32(SPI_EXT2_REG(0)) != 0); -#ifndef CONFIG_ESP32_USER_DATA_EXTMEM +#ifndef CONFIG_ESP32_PID modifyreg32(DPORT_HOST_INF_SEL_REG, 0, 1 << 14); #endif @@ -725,7 +725,7 @@ psram_cmd_recv_start(psram_spi_num_t spi_num, while ((getreg32(SPI_CMD_REG(spi_num)) & SPI_USR)); -#ifndef CONFIG_ESP32_USER_DATA_EXTMEM +#ifndef CONFIG_ESP32_PID modifyreg32(DPORT_HOST_INF_SEL_REG, 1 << 14, 0); #endif