mmu: support configurable mmu page size

This commit is contained in:
Armando
2023-03-02 17:11:48 +08:00
committed by Armando (Dou Yiwen)
parent 370e250072
commit 89fa53f1c0
4 changed files with 9 additions and 4 deletions

View File

@@ -40,6 +40,7 @@
#include "esp_private/bootloader_flash_internal.h"
#include "esp_efuse.h"
#include "hal/mmu_hal.h"
#include "hal/mmu_ll.h"
#include "hal/cache_hal.h"
#include "soc/lp_wdt_reg.h"
#include "hal/efuse_hal.h"
@@ -160,7 +161,8 @@ esp_err_t bootloader_init(void)
cache_hal_init();
//reset mmu
mmu_hal_init();
// config mmu page size
mmu_ll_set_page_size(0, SPI_FLASH_MMU_PAGE_SIZE);
// update flash ID
bootloader_flash_update_id();
// Check and run XMC startup flow