From 3d275bd4a2b495a43530613e77731cc933acfde2 Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Fri, 30 Aug 2024 14:06:21 +0900 Subject: [PATCH] psram_cache_init: remove cosmetic differences between PRO/APP No functional changes are intended. --- arch/xtensa/src/esp32/esp32_psram.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/arch/xtensa/src/esp32/esp32_psram.c b/arch/xtensa/src/esp32/esp32_psram.c index 3898a67c72..d3c3455fd8 100644 --- a/arch/xtensa/src/esp32/esp32_psram.c +++ b/arch/xtensa/src/esp32/esp32_psram.c @@ -594,7 +594,7 @@ static void IRAM_ATTR } } - /* use Dram1 to visit ext sram. */ + /* use DRAM1 to visit ext sram. */ modifyreg32(DPORT_PRO_CACHE_CTRL1_REG, DPORT_PRO_CACHE_MASK_DRAM1 | DPORT_PRO_CACHE_MASK_OPSDRAM, 0); @@ -602,7 +602,7 @@ static void IRAM_ATTR /* cache page mode : * 1 -->16k * 4 -->2k - * 0 -->32k,(accord with the settings in cache_sram_mmu_set) + * 0 -->32k, (accord with the settings in cache_sram_mmu_set) */ /* get into unknown exception if not comment */ @@ -615,8 +615,7 @@ static void IRAM_ATTR /* use DRAM1 to visit ext sram. */ modifyreg32(DPORT_APP_CACHE_CTRL1_REG, - DPORT_APP_CACHE_MASK_DRAM1 | - DPORT_APP_CACHE_MASK_OPSDRAM, 0); + DPORT_APP_CACHE_MASK_DRAM1 | DPORT_APP_CACHE_MASK_OPSDRAM, 0); /* cache page mode : * 1 -->16k