driver: sleeptimer: siwx917: Add siwx91x Sleeptimer driver

This commit enables the Sleeptimer driver support for the siwx917 device.

Signed-off-by: S Mohamed Fiaz <fiaz.mohamed@silabs.com>
This commit is contained in:
S Mohamed Fiaz 2025-03-25 11:19:51 +05:30 committed by Benjamin Cabé
commit 701be0c331
7 changed files with 51 additions and 1 deletions

View file

@ -151,5 +151,23 @@ if(CONFIG_WISECONNECT_NETWORK_STACK)
)
endif() # CONFIG_WISECONNECT_NETWORK_STACK
if(CONFIG_SOC_SILABS_SLEEPTIMER)
zephyr_include_directories(
${SISDK_DIR}/platform/service/sleeptimer/inc
${SISDK_DIR}/platform/service/sleeptimer/src
${SISDK_DIR}/platform/service/sleeptimer/config
)
zephyr_library_sources(
${SISDK_DIR}/platform/service/sleeptimer/src/sl_sleeptimer.c
${WISECONNECT_DIR}/components/device/silabs/si91x/mcu/drivers/service/sleeptimer/src/sl_sleeptimer_hal_si91x_sysrtc.c
)
zephyr_compile_definitions(
SL_CATALOG_SLEEPTIMER_PRESENT
SL_CODE_COMPONENT_SLEEPTIMER=sleeptimer
SL_CODE_COMPONENT_HAL_SYSRTC=hal_sysrtc
)
endif() # CONFIG_SOC_SILABS_SLEEPTIMER
zephyr_linker_sources(ROM_SECTIONS linker/code_classification_text.ld)
zephyr_linker_sources(RAMFUNC_SECTION linker/code_classification_ramfunc.ld)