Found 6 other functions taking a
esp_image_header_t
argument:
Configure SPI flash gpio, include the IO matrix and drive strength configuration.
Configure SPI flash read dummy based on different mode and frequency.
Check if the image (bootloader and application) has valid chip ID and revision
Configure SPI flash clock.