xtensa/esp32: Fix ESP32_SPIRAM_USER_HEAP under Protected mode
Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
This commit is contained in:
parent
e451b43798
commit
a4c9da9280
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user