Skip to content

Commit 1500d70

Browse files
author
Zim Kalinowski
committed
Merge branch 'bugfix/spram_and_virt_efuse_can_work_v4.4' into 'release/v4.4'
esp_psram: Use efuse_ll instead of efuse API (v4.4) See merge request espressif/esp-idf!22642
2 parents 6e950ad + 9e0a8e2 commit 1500d70

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

components/esp_hw_support/port/esp32/spiram_psram.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
#include "soc/soc_caps.h"
2727
#include "driver/gpio.h"
2828
#include "hal/efuse_hal.h"
29+
#include "hal/efuse_ll.h"
2930
#include "hal/gpio_hal.h"
3031
#include "driver/spi_common_internal.h"
3132
#include "driver/periph_ctrl.h"
@@ -822,7 +823,7 @@ bool psram_is_32mbit_ver0(void)
822823
esp_err_t IRAM_ATTR psram_enable(psram_cache_mode_t mode, psram_vaddr_mode_t vaddrmode) //psram init
823824
{
824825
psram_io_t psram_io={0};
825-
uint32_t pkg_ver = esp_efuse_get_pkg_ver();
826+
uint32_t pkg_ver = efuse_ll_get_chip_ver_pkg();
826827
if (pkg_ver == EFUSE_RD_CHIP_VER_PKG_ESP32D2WDQ5) {
827828
ESP_EARLY_LOGI(TAG, "This chip is ESP32-D2WD");
828829
rtc_vddsdio_config_t cfg = rtc_vddsdio_get_config();

0 commit comments

Comments
 (0)