esp_phy: Update ESP32S2 phy lib to support eco1 chip

This commit is contained in:
chenjianxing
2022-01-10 11:56:59 +08:00
parent 7d65b17898
commit 5e4ec25ace
6 changed files with 91 additions and 58 deletions

View File

@@ -25,6 +25,7 @@
#include "esp_log.h"
#include "nvs.h"
#include "nvs_flash.h"
#include "esp_efuse.h"
#include "sdkconfig.h"
#include "freertos/FreeRTOS.h"
#include "freertos/portmacro.h"
@@ -577,6 +578,10 @@ void esp_phy_load_cal_and_init(void)
char * phy_version = get_phy_version_str();
ESP_LOGI(TAG, "phy_version %s", phy_version);
#if CONFIG_IDF_TARGET_ESP32S2
phy_eco_version_sel(esp_efuse_get_chip_ver());
#endif
esp_phy_calibration_data_t* cal_data =
(esp_phy_calibration_data_t*) calloc(sizeof(esp_phy_calibration_data_t), 1);
if (cal_data == NULL) {