mirror of
https://github.com/espressif/esp-idf.git
synced 2025-07-31 19:24:33 +02:00
Merge branch 'bugfix/spram_and_virt_efuse_can_work' into 'release/v5.0'
esp_psram: Use efuse_ll instead of efuse API See merge request espressif/esp-idf!22641
This commit is contained in:
@@ -28,6 +28,7 @@
|
||||
#include "soc/chip_revision.h"
|
||||
#include "driver/gpio.h"
|
||||
#include "hal/efuse_hal.h"
|
||||
#include "hal/efuse_ll.h"
|
||||
#include "hal/gpio_hal.h"
|
||||
#include "esp_private/spi_common_internal.h"
|
||||
#include "esp_private/periph_ctrl.h"
|
||||
@@ -823,7 +824,7 @@ esp_err_t IRAM_ATTR esp_psram_impl_enable(psram_vaddr_mode_t vaddrmode) //psra
|
||||
{
|
||||
psram_cache_speed_t mode = PSRAM_SPEED;
|
||||
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();
|
||||
|
Reference in New Issue
Block a user