OVMS3-idf/components/bootloader_support/src
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_clock.c bugfix/rtc_clk_32k_bootstrap: Fix starting 32k RTC 2018-03-21 13:27:56 +05:00
bootloader_common.c bootloader: Refactoring 2018-04-17 16:36:49 +05:00
bootloader_flash.c add api get valid mmu table pages number 2018-03-16 10:40:55 +08:00
bootloader_init.c feature(psram): configure flash and psram speed during runtime 2018-04-20 20:51:44 +08:00
bootloader_random.c log: Remove non-static TAG variables 2017-12-15 10:59:48 +11:00
bootloader_sha.c bootloader: Calculate SHA256 hash of image on every boot 2017-07-19 18:31:59 +10:00
bootloader_utility.c bootloader: Refactoring 2018-04-17 16:36:49 +05:00
efuse.c esp32: Add KConfig option to disable ROM Console fallback on first boot 2017-08-29 14:52:00 +10:00
esp_image_format.c spi_flash: 2018-03-26 10:24:42 +08:00
flash_encrypt.c flash encryption: Also always disable ROM BASIC console when enabling flash encryption 2017-08-29 14:52:00 +10:00
flash_partitions.c Protect partition table by MD5 checksum 2018-02-05 11:36:03 +01:00
flash_qio_mode.c feature(psram): configure flash and psram speed during runtime 2018-04-20 20:51:44 +08:00
secure_boot.c bootloader: Combine loading from flash & verifying to save boot time 2017-07-19 18:25:17 +10:00
secure_boot_signatures.c bootloader: Calculate SHA256 hash of image on every boot 2017-07-19 18:31:59 +10:00