mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-02 03:00:34 +03:00
feat(psram): support 250MHz in experimental
This commit is contained in:
@@ -55,7 +55,11 @@
|
||||
#define AP_HEX_PSRAM_CS_ECC_HOLD_TIME 4
|
||||
#define AP_HEX_PSRAM_CS_HOLD_DELAY 3
|
||||
|
||||
#if CONFIG_SPIRAM_SPEED_250M
|
||||
#define AP_HEX_PSRAM_MPLL_DEFAULT_FREQ_MHZ 500
|
||||
#else
|
||||
#define AP_HEX_PSRAM_MPLL_DEFAULT_FREQ_MHZ 400
|
||||
#endif
|
||||
|
||||
#define AP_HEX_PSRAM_REF_DATA 0x5a6b7c8d
|
||||
|
||||
@@ -461,13 +465,6 @@ esp_err_t esp_psram_impl_enable(void)
|
||||
mode_reg.mr2.density == 0x7 ? PSRAM_SIZE_32MB :
|
||||
mode_reg.mr2.density == 0x6 ? PSRAM_SIZE_64MB : 0;
|
||||
|
||||
#if CONFIG_SPIRAM_SPEED_250M
|
||||
if (mode_reg.mr2.density == 0x7) {
|
||||
ESP_EARLY_LOGE(TAG, "PSRAM Not support 250MHz speed");
|
||||
return ESP_ERR_NOT_SUPPORTED;
|
||||
}
|
||||
#endif
|
||||
|
||||
s_config_mspi_for_psram();
|
||||
mspi_timing_psram_tuning();
|
||||
psram_ctrlr_ll_enable_variable_dummy(PSRAM_CTRLR_LL_MSPI_ID_2, true);
|
||||
|
||||
Reference in New Issue
Block a user