fix(system): fixed ram loadable app on p4

This commit is contained in:
Armando
2024-09-04 16:48:26 +08:00
committed by Armando (Dou Yiwen)
parent 24047f9a04
commit 6933ba39bc
10 changed files with 74 additions and 19 deletions

View File

@@ -109,12 +109,12 @@ static inline void bootloader_hardware_init(void)
REGI2C_WRITE_MASK(I2C_BIAS, I2C_BIAS_DREG_1P1, 10);
REGI2C_WRITE_MASK(I2C_BIAS, I2C_BIAS_DREG_1P1_PVT, 10);
#if !CONFIG_APP_BUILD_TYPE_PURE_RAM_APP
// IDF-10019 TODO: This is temporarily for ESP32P4-ECO0, please remove it when eco0 is not widly used.
int __DECLARE_RCC_ATOMIC_ENV __attribute__ ((unused));
if (likely(ESP_CHIP_REV_ABOVE(chip_version, 1))) {
spimem_flash_ll_select_clk_source(0, FLASH_CLK_SRC_SPLL);
spimem_ctrlr_ll_set_core_clock(0, 6);
bootloader_flash_init_core_clock();
}
#endif
}
static inline void bootloader_ana_reset_config(void)