drivers: memc: stm32 psram: Fix XSPI configuration for performance
Correct XSPI configuration in order to improve PSRAM access on the STM32N6 discovery board. Ideally, this should be defined by device tree, but I'm fixing the only user for now. Signed-off-by: Erwan Gouriou <erwan.gouriou@st.com>
This commit is contained in:
parent
86cab94150
commit
41664ebda0
1 changed files with 2 additions and 2 deletions
|
@ -389,12 +389,12 @@ static struct memc_stm32_xspi_psram_data memc_stm32_xspi_data = {
|
|||
.hxspi = {
|
||||
.Instance = (XSPI_TypeDef *)DT_REG_ADDR(STM32_XSPI_NODE),
|
||||
.Init = {
|
||||
.FifoThresholdByte = 8U,
|
||||
.FifoThresholdByte = 2U,
|
||||
.MemoryMode = HAL_XSPI_SINGLE_MEM,
|
||||
.MemoryType = (DT_INST_PROP(0, io_x16_mode) ?
|
||||
HAL_XSPI_MEMTYPE_APMEM_16BITS :
|
||||
HAL_XSPI_MEMTYPE_APMEM),
|
||||
.ChipSelectHighTimeCycle = 1U,
|
||||
.ChipSelectHighTimeCycle = 5U,
|
||||
.FreeRunningClock = HAL_XSPI_FREERUNCLK_DISABLE,
|
||||
.ClockMode = HAL_XSPI_CLOCK_MODE_0,
|
||||
.WrapSize = HAL_XSPI_WRAP_NOT_SUPPORTED,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue