feat(startup): add fast boot and fast restart function

This commit is contained in:
dongheng
2020-02-17 14:39:32 +08:00
committed by Dong Heng
parent 4b466c782d
commit b967caefaf
19 changed files with 428 additions and 43 deletions

View File

@@ -30,11 +30,19 @@ static int selected_boot_partition(const bootloader_state_t *bs);
void call_start_cpu(void)
{
#ifdef CONFIG_BOOTLOADER_FAST_BOOT
REG_SET_BIT(DPORT_CTL_REG, DPORT_CTL_DOUBLE_CLK);
#endif
// 1. Hardware initialization
if(bootloader_init() != ESP_OK){
return;
}
#ifdef CONFIG_BOOTLOADER_FAST_BOOT
bootloader_utility_fast_boot_image();
#endif
// 2. Select image to boot
esp_image_metadata_t image_data;
if(select_image(&image_data) != ESP_OK){