From 0b920ec08a7855bc2009c2f81948cfaffb635ad2 Mon Sep 17 00:00:00 2001 From: wuzhenghui Date: Mon, 11 Dec 2023 17:03:48 +0800 Subject: [PATCH] change(esp_phy): close esp32h2 rf pll by default --- .../bootloader_support/src/esp32h2/bootloader_esp32h2.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/components/bootloader_support/src/esp32h2/bootloader_esp32h2.c b/components/bootloader_support/src/esp32h2/bootloader_esp32h2.c index 94e7509158..17934d512a 100644 --- a/components/bootloader_support/src/esp32h2/bootloader_esp32h2.c +++ b/components/bootloader_support/src/esp32h2/bootloader_esp32h2.c @@ -41,6 +41,7 @@ #include "hal/cache_hal.h" #include "hal/lpwdt_ll.h" #include "soc/lp_wdt_reg.h" +#include "soc/pmu_reg.h" #include "hal/efuse_hal.h" #include "modem/modem_lpcon_reg.h" @@ -85,6 +86,9 @@ static void bootloader_super_wdt_auto_feed(void) static inline void bootloader_hardware_init(void) { + /* Disable RF pll by default */ + CLEAR_PERI_REG_MASK(PMU_RF_PWC_REG, PMU_XPD_RFPLL); + SET_PERI_REG_MASK(PMU_RF_PWC_REG, PMU_XPD_FORCE_RFPLL); /* Enable analog i2c master clock */ SET_PERI_REG_MASK(MODEM_LPCON_CLK_CONF_REG, MODEM_LPCON_CLK_I2C_MST_EN); }