esp-idf/components/esp32/include/rom
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
..
aes.h Merge remote-tracking branch 'origin/master' into feature/mbedtls 2016-09-13 16:31:48 +08:00
bigint.h Merge remote-tracking branch 'origin/master' into feature/mbedtls 2016-09-13 16:31:48 +08:00
cache.h component/esp32 : do more fix of dualcore bug 2017-05-12 15:41:51 +08:00
crc.h header files: clean up 2016-09-12 17:47:50 +08:00
efuse.h bootloader: Add QIO support for ESP32-D2WD SPI flash 2017-04-13 17:55:47 +10:00
ets_sys.h deep sleep: fix regression due to moving ets_update_cpu_frequency into IRAM 2017-01-12 14:15:25 +08:00
gpio.h gpio: add special GPIO signal values 2018-04-11 11:06:50 +08:00
libc_stubs.h Initial public version 2016-08-17 23:08:22 +08:00
lldesc.h Initial public version 2016-08-17 23:08:22 +08:00
md5_hash.h md5_hash.h: Replace outdated use of c_types.h with stdint 2016-09-01 08:58:29 +10:00
miniz.h Initial public version 2016-08-17 23:08:22 +08:00
queue.h Initial public version 2016-08-17 23:08:22 +08:00
rtc.h esp32: make time monotonic across resets 2017-06-16 12:06:04 +08:00
secure_boot.h Refactor existing bootloader common functionality into bootloader_support component 2016-11-02 17:58:41 +11:00
sha.h mbedTLS SHA acceleration: Allow concurrent digest calculation, works with TLS 2016-11-22 20:42:38 +11:00
spi_flash.h feature(psram): configure flash and psram speed during runtime 2018-04-20 20:51:44 +08:00
tbconsole.h Initial public version 2016-08-17 23:08:22 +08:00
tjpgd.h Initial public version 2016-08-17 23:08:22 +08:00
uart.h Make error codes looks like literals in the code of them (easy for searching). Minor fixes, typos 2018-04-09 13:54:18 +10:00