mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-03 03:31:41 +03:00
refactor(pmu): move S31 dbias vol gap getter from efuse_ll to pmu_ll
Keep PMU calibration efuse reads in the PMU LL layer, matching other chips.
This commit is contained in:
@@ -20,7 +20,6 @@
|
||||
#include "soc/regi2c_dig_reg.h"
|
||||
#include "regi2c_ctrl.h"
|
||||
#include "soc/rtc.h"
|
||||
#include "hal/efuse_ll.h"
|
||||
#include "hal/efuse_hal.h"
|
||||
#include "esp_hw_log.h"
|
||||
#include "soc/hp_sys_clkrst_reg.h"
|
||||
@@ -36,7 +35,7 @@ static uint8_t get_lp_hp_gap(void)
|
||||
uint32_t blk_version = efuse_hal_blk_version();
|
||||
uint8_t lp_hp_gap_efuse = 0;
|
||||
if (blk_version >= 1) {
|
||||
lp_hp_gap_efuse = efuse_ll_get_dbias_vol_gap();
|
||||
lp_hp_gap_efuse = pmu_ll_get_dbias_vol_gap();
|
||||
bool gap_flag = lp_hp_gap_efuse >> 4;
|
||||
uint8_t gap_abs_value = lp_hp_gap_efuse & 0xf;
|
||||
if (gap_flag) {
|
||||
|
||||
Reference in New Issue
Block a user