xtensa/esp32: Fix ESP32_SPIRAM_USER_HEAP under Protected mode
@@ -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
