mirror of
https://github.com/espressif/esp-idf.git
synced 2025-10-09 22:21:10 +00:00
Merge branch 'bugfix/psram_enc_workaround' into 'master'
fix(psram): provide boot warning about PSRAM encryption issue on C5/C61 See merge request espressif/esp-idf!40913
This commit is contained in:
@@ -17,6 +17,7 @@
|
||||
#include "hal/mmu_types.h"
|
||||
#if SOC_EFUSE_SUPPORTED
|
||||
#include "hal/efuse_ll.h"
|
||||
#include "hal/efuse_hal.h"
|
||||
#endif
|
||||
|
||||
|
||||
@@ -214,7 +215,10 @@ __attribute__((always_inline)) static inline void mmu_ll_write_entry(uint32_t mm
|
||||
{
|
||||
uint32_t mmu_raw_value;
|
||||
if (mmu_ll_cache_encryption_enabled()) {
|
||||
mmu_val |= SOC_MMU_SENSITIVE;
|
||||
// For PSRAM case, avoid encryption due to a bug in the hardware
|
||||
if (!(target == MMU_TARGET_PSRAM0 && efuse_hal_chip_revision() <= 100)) {
|
||||
mmu_val |= SOC_MMU_SENSITIVE;
|
||||
}
|
||||
}
|
||||
mmu_val |= (target == MMU_TARGET_FLASH0) ? SOC_MMU_ACCESS_FLASH : SOC_MMU_ACCESS_SPIRAM;
|
||||
|
||||
|
Reference in New Issue
Block a user