Skip to content

Commit 41664eb

Browse files
erwangodkalowsk
authored andcommitted
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 <[email protected]>
1 parent 86cab94 commit 41664eb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/memc/memc_stm32_xspi_psram.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -389,12 +389,12 @@ static struct memc_stm32_xspi_psram_data memc_stm32_xspi_data = {
389389
.hxspi = {
390390
.Instance = (XSPI_TypeDef *)DT_REG_ADDR(STM32_XSPI_NODE),
391391
.Init = {
392-
.FifoThresholdByte = 8U,
392+
.FifoThresholdByte = 2U,
393393
.MemoryMode = HAL_XSPI_SINGLE_MEM,
394394
.MemoryType = (DT_INST_PROP(0, io_x16_mode) ?
395395
HAL_XSPI_MEMTYPE_APMEM_16BITS :
396396
HAL_XSPI_MEMTYPE_APMEM),
397-
.ChipSelectHighTimeCycle = 1U,
397+
.ChipSelectHighTimeCycle = 5U,
398398
.FreeRunningClock = HAL_XSPI_FREERUNCLK_DISABLE,
399399
.ClockMode = HAL_XSPI_CLOCK_MODE_0,
400400
.WrapSize = HAL_XSPI_WRAP_NOT_SUPPORTED,

0 commit comments

Comments
 (0)