mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-02 11:10:54 +03:00
fix(spi_flash): Fix esp32p4 120m flash suspend failed
This commit is contained in:
@@ -381,6 +381,8 @@ __attribute__((always_inline))
|
||||
static inline void mspi_timinng_ll_enable_flash_timing_adjust_clk(uint8_t spi_num)
|
||||
{
|
||||
HAL_ASSERT(spi_num == MSPI_TIMING_LL_MSPI_ID_0);
|
||||
// Should set ie always on to ensure it can read flash sr2
|
||||
REG_SET_BIT(SPI_MEM_C_CTRL_REG, SPI_MEM_C_DATA_IE_ALWAYS_ON);
|
||||
REG_GET_BIT(SPI_MEM_C_TIMING_CALI_REG, SPI_MEM_C_TIMING_CLK_ENA);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user