esp-idf/components/bootloader_support/include_priv
Wangjialin b1dcb52fec feature(psram): configure flash and psram speed during runtime
1. Bootloader reads SPI configuration from bin header, so that the burning configuration can be different with compiling configuration.
2. Psram mode init will overwrite original flash speed mode, so that users can change psram and flash speed after OTA.
3. Flash read mode(QIO/DIO…) will not be changed in app bin. It is decided by bootloader, OTA can not change this mode.
4. Add read flash ID function, and save flash ID in g_rom_flashchip
5. Set drive ability for all related GPIOs
6. Check raise VDDSDIO voltage in 80Mhz mode
7. Add check flash ID and update settings in bootloader
8. Read flash ID once and keep in global variable
9. Read flash image header once and reuse the result

Tested cases:
1. Test new and old version of bootloader
boot Flash 20M —> app Flash 80M + Psram 80M
boot Flash 40M —> app Flash 80M + Psram 80M
boot Flash 80M —> app Flash 80M + Psram 80M
boot Flash 20M —> app Flash 80M + Psram 40M
boot Flash 40M —> app Flash 80M + Psram 40M
boot Flash 80M —> app Flash 80M + Psram 40M
boot Flash 20M —> app Flash 40M + Psram 40M
boot Flash 40M —> app Flash 40M + Psram 40M
boot Flash 80M —> app Flash 40M + Psram 40M
2. Working after esp_restart reboot.
2018-04-20 20:51:44 +08:00
..
bootloader_config.h bootloader: Refactoring 2018-04-17 16:36:49 +05:00
bootloader_flash.h Flash encryption: Support enabling flash encryption in bootloader, app support 2016-12-01 23:49:12 -08:00
bootloader_init.h bootloader: Refactoring 2018-04-17 16:36:49 +05:00
bootloader_random.h bootloader: Enable early boot RNG entropy source 2017-01-04 17:07:12 +11:00
bootloader_sha.h bootloader: Calculate SHA256 hash of image on every boot 2017-07-19 18:31:59 +10:00
bootloader_utility.h bootloader: Refactoring 2018-04-17 16:36:49 +05:00
flash_qio_mode.h feature(psram): configure flash and psram speed during runtime 2018-04-20 20:51:44 +08:00