Skip to content

Commit

Permalink
psram_cache_init: remove cosmetic differences between PRO/APP
Browse files Browse the repository at this point in the history
No functional changes are intended.
  • Loading branch information
yamt committed Sep 4, 2024
1 parent 433f159 commit 7e17d0d
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions arch/xtensa/src/esp32/esp32_psram.c
Original file line number Diff line number Diff line change
Expand Up @@ -594,15 +594,15 @@ 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);

/* 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 */
Expand All @@ -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
Expand Down

0 comments on commit 7e17d0d

Please sign in to comment.