Skip to content

Commit 421c3f6

Browse files
FRASTMkartben
authored andcommitted
drivers: memc: stm32 xspi driver size and address of the external PSRAM
New property of the st,stm32-xspi-psram compatible gives the external PSRAM memory in bits. The property of the st,stm32-xspi compatible gives the external PSRAM memory base address Signed-off-by: Francois Ramu <francois.ramu@st.com>
1 parent bee60ed commit 421c3f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/memc/memc_stm32_xspi_psram.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ static const struct memc_stm32_xspi_psram_config memc_stm32_xspi_cfg = {
338338
.pclken_mgr = {.bus = DT_CLOCKS_CELL_BY_NAME(STM32_XSPI_NODE, xspi_mgr, bus),
339339
.enr = DT_CLOCKS_CELL_BY_NAME(STM32_XSPI_NODE, xspi_mgr, bits)},
340340
#endif
341-
.memory_size = DT_INST_REG_ADDR_BY_IDX(0, 1),
341+
.memory_size = DT_INST_PROP(0, size) / 8, /* In Bytes */
342342
};
343343

344344
static struct memc_stm32_xspi_psram_data memc_stm32_xspi_data = {

0 commit comments

Comments
 (0)