mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-02 11:10:54 +03:00
refactor(spi_flash): move os layer to esp_mspi and chip configs to spi_flash
Also fixes the implicit dependency on esp_partition.
This commit is contained in:
committed by
Armando (Dou Yiwen)
parent
c565262ded
commit
6e3abd12a1
@@ -21,7 +21,6 @@
|
||||
#include "esp_private/startup_internal.h"
|
||||
#include "esp_spi_flash_counters.h"
|
||||
#include "esp_rom_spiflash.h"
|
||||
#include "bootloader_flash.h"
|
||||
#include "esp_check.h"
|
||||
#include "esp_private/esp_clk_tree_common.h"
|
||||
#include "esp_clk_tree.h"
|
||||
@@ -33,6 +32,7 @@
|
||||
#include "esp_flash.h"
|
||||
#include "esp_flash_spi_init.h"
|
||||
#include "esp_flash_chips/spi_flash_chip_driver.h"
|
||||
#include "esp_flash_chips/esp_flash_types.h"
|
||||
#include "esp_private/memspi_host_driver.h"
|
||||
#include "esp_private/esp_flash_internal.h"
|
||||
#include "esp_private/spi_flash_os.h"
|
||||
@@ -472,7 +472,7 @@ static DRAM_ATTR esp_flash_t default_chip = {
|
||||
static void s_esp_flash_choose_correct_mode(memspi_host_config_t *cfg)
|
||||
{
|
||||
static const char *mode = FLASH_MODE_STRING;
|
||||
if (bootloader_flash_is_octal_mode_enabled()) {
|
||||
if (spi_flash_is_octal_mode_enabled()) {
|
||||
#if !CONFIG_ESPTOOLPY_FLASHMODE_OPI
|
||||
ESP_EARLY_LOGW(TAG, "Octal flash chip is using but %s mode is selected, will automatically switch to Octal mode", mode);
|
||||
cfg->octal_mode_en = 1;
|
||||
@@ -663,6 +663,7 @@ ESP_SYSTEM_INIT_FN(init_flash, CORE, BIT(0), 130)
|
||||
esp_mspi_register_isr(NULL);
|
||||
#endif
|
||||
//else register flash standalone ISR to deal with CPU / API flash access
|
||||
|
||||
return ESP_OK;
|
||||
}
|
||||
#endif // !CONFIG_APP_BUILD_TYPE_PURE_RAM_APP
|
||||
|
||||
Reference in New Issue
Block a user