fix(mspi): enable PSRAM core clock in module clock init

psram_ctrlr_ll_enable_module_clock() was missing
reg_psram_core_clk_en, causing SPIMEM2 access faults
after system reset.
This commit is contained in:
Erhan Kurubas
2026-03-20 22:51:39 +01:00
parent fe2cc0a64c
commit 5fa339fca5

View File

@@ -342,6 +342,7 @@ static inline void _psram_ctrlr_ll_enable_module_clock(uint32_t mspi_id, bool en
(void)mspi_id;
HP_SYS_CLKRST.soc_clk_ctrl0.reg_psram_sys_clk_en = en;
HP_SYS_CLKRST.peri_clk_ctrl00.reg_psram_pll_clk_en = en;
HP_SYS_CLKRST.peri_clk_ctrl00.reg_psram_core_clk_en = en;
}
/// use a macro to wrap the function, force the caller to use it in a critical section