Skip to content

Commit

Permalink
Merge branch 'bugfix/spram_and_virt_efuse_can_work_v4.4' into 'releas…
Browse files Browse the repository at this point in the history
…e/v4.4'

esp_psram: Use efuse_ll instead of efuse API (v4.4)

See merge request espressif/esp-idf!22642
  • Loading branch information
zikalino committed Mar 9, 2023
2 parents 6e950ad + 9e0a8e2 commit 1500d70
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion components/esp_hw_support/port/esp32/spiram_psram.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
#include "soc/soc_caps.h"
#include "driver/gpio.h"
#include "hal/efuse_hal.h"
#include "hal/efuse_ll.h"
#include "hal/gpio_hal.h"
#include "driver/spi_common_internal.h"
#include "driver/periph_ctrl.h"
Expand Down Expand Up @@ -822,7 +823,7 @@ bool psram_is_32mbit_ver0(void)
esp_err_t IRAM_ATTR psram_enable(psram_cache_mode_t mode, psram_vaddr_mode_t vaddrmode) //psram init
{
psram_io_t psram_io={0};
uint32_t pkg_ver = esp_efuse_get_pkg_ver();
uint32_t pkg_ver = efuse_ll_get_chip_ver_pkg();
if (pkg_ver == EFUSE_RD_CHIP_VER_PKG_ESP32D2WDQ5) {
ESP_EARLY_LOGI(TAG, "This chip is ESP32-D2WD");
rtc_vddsdio_config_t cfg = rtc_vddsdio_get_config();
Expand Down

0 comments on commit 1500d70

Please sign in to comment.