bootloader: force SDIO 1.9V if flash is 80M

If the SPI flash frequency is 80M, the voltage of SDIO is 1.9V,
otherwise, it can configured to 1.8V or 1.9V via menuconfig.
This commit is contained in:
Liu Zhi Fu
2018-03-19 16:09:52 +08:00
parent 7594127ca3
commit 072b353b45
2 changed files with 11 additions and 4 deletions
@@ -743,7 +743,7 @@ static void print_flash_info(const esp_image_header_t* phdr)
static void vddsdio_configure()
{
#if CONFIG_BOOTLOADER_VDDSDIO_BOOST
#if CONFIG_BOOTLOADER_VDDSDIO_BOOST_1_9V
rtc_vddsdio_config_t cfg = rtc_vddsdio_get_config();
if (cfg.enable == 1 && cfg.tieh == 0) { // VDDSDIO regulator is enabled @ 1.8V
cfg.drefh = 3;