arch/xtensa/src/esp32/esp32_spiflash.c: Invalidate the cache and

writeback PSRAM data if the flash address used has a cache mapping.

Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
This commit is contained in:
Abdelatif Guettouche
2020-12-10 09:15:24 +00:00
committed by Alan Carvalho de Assis
parent 1d438bfb9b
commit 81a9eb190d
2 changed files with 252 additions and 60 deletions
File diff suppressed because it is too large Load Diff
@@ -785,6 +785,9 @@ extern int rom_i2c_writeReg(int block, int block_id, int reg_add,
#define DROM0_PAGES_START 0
#define DROM0_PAGES_END 64
#define IROM0_PAGES_START 64
#define IROM0_PAGES_END 256
/* MMU invaild value */
#define INVALID_MMU_VAL 0x100