Skip to content

Commit 63e15f4

Browse files
committed
modules: hal_silabs: wiseconnect: CMakeLists update
This update fixes build system integration for PSRAM features by adding rsi_d_cache.c to the sources and required compile definitions, ensuring full support for half-sleep and LDO functionality. Signed-off-by: S Mohamed Fiaz <[email protected]>
1 parent ba9bf6e commit 63e15f4

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

modules/hal_silabs/wiseconnect/CMakeLists.txt

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -105,10 +105,18 @@ zephyr_library_sources_ifdef(CONFIG_ENTROPY_SILABS_SIWX91X
105105
${WISECONNECT_DIR}/components/device/silabs/si91x/mcu/drivers/peripheral_drivers/src/rsi_rng.c
106106
)
107107

108-
zephyr_library_sources_ifdef(CONFIG_MEMC_SILABS_SIWX91X_QSPI
109-
${WISECONNECT_DIR}/components/device/silabs/si91x/mcu/drivers/unified_api/src/sl_si91x_psram.c
110-
${WISECONNECT_DIR}/components/device/silabs/si91x/mcu/drivers/peripheral_drivers/src/rsi_qspi.c
111-
)
108+
if(CONFIG_MEMC_SILABS_SIWX91X_QSPI)
109+
zephyr_library_sources(
110+
${WISECONNECT_DIR}/components/device/silabs/si91x/mcu/drivers/unified_api/src/sl_si91x_psram.c
111+
${WISECONNECT_DIR}/components/device/silabs/si91x/mcu/drivers/peripheral_drivers/src/rsi_qspi.c
112+
${WISECONNECT_DIR}/components/device/silabs/si91x/mcu/drivers/unified_api/src/rsi_d_cache.c
113+
)
114+
zephyr_compile_definitions(
115+
SLI_SI91X_MCU_PSRAM_PRESENT
116+
SLI_SI91X_MCU_ENABLE_PSRAM_FEATURE
117+
SL_SI91X_REQUIRES_INTF_PLL
118+
)
119+
endif() # CONFIG_MEMC_SILABS_SIWX91X_QSPI
112120

113121
if(CONFIG_WIFI_SILABS_SIWX91X)
114122
zephyr_library_sources(

0 commit comments

Comments
 (0)