mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-02 11:10:54 +03:00
spi_flash: replace flash clock src change API with mspi timing API
This commit is contained in:
@@ -287,13 +287,3 @@ uint8_t esp_mspi_get_io(esp_mspi_io_t io)
|
||||
return s_mspi_io_num_default[io];
|
||||
#endif // SOC_SPI_MEM_SUPPORT_CONFIG_GPIO_BY_EFUSE
|
||||
}
|
||||
|
||||
#if SOC_MEMSPI_CLOCK_IS_INDEPENDENT
|
||||
|
||||
IRAM_ATTR void spi_flash_set_clock_src(soc_periph_mspi_clk_src_t clk_src)
|
||||
{
|
||||
cache_hal_freeze(CACHE_TYPE_INSTRUCTION);
|
||||
spimem_flash_ll_set_clock_source(clk_src);
|
||||
cache_hal_unfreeze(CACHE_TYPE_INSTRUCTION);
|
||||
}
|
||||
#endif // SOC_MEMSPI_CLOCK_IS_INDEPENDENT
|
||||
|
||||
@@ -246,16 +246,7 @@ extern const spi_flash_guard_funcs_t g_flash_guard_no_os_ops;
|
||||
*/
|
||||
void spi_flash_rom_impl_init(void);
|
||||
|
||||
#if SOC_MEMSPI_CLOCK_IS_INDEPENDENT
|
||||
/**
|
||||
* @brief This functions is used to change spi flash clock source between PLL and others, which is used after system wake up from a low power mode or
|
||||
* enter low-power mode like sleep.
|
||||
* @param clk_src mspi(flash) clock source.
|
||||
*
|
||||
* @note Only called in startup. User should not call this function.
|
||||
*/
|
||||
void spi_flash_set_clock_src(soc_periph_mspi_clk_src_t clk_src);
|
||||
#endif
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user