Skip to content

Conversation

@Martinhoff-maker
Copy link
Member

@Martinhoff-maker Martinhoff-maker commented Dec 1, 2025

This PR removes the definition of SYS_CLOCK_HW_CYCLES_PER_SEC in the board defconfig and defined it from the dts in soc defconfig.
It also gathered all default definitions of of SYS_CLOCK_TICKS_PER_SEC and put it at the same place.

jerome-pouiller
jerome-pouiller previously approved these changes Dec 2, 2025
@Martinhoff-maker Martinhoff-maker added the DNM This PR should not be merged (Do Not Merge) label Dec 3, 2025
This patch introduce configuration of the symbol
'SYS_CLOCK_HW_CYCLES_PER_SEC' with dts entry rather than a hardcoded
value.
Clock control on siwx91x needs to use the clock frequency of the cpu
to init rather than the 'SYS_CLOCK_HW_CYCLES_PER_SEC' symbol,
otherwise we initialize the m4 clock with the ULP ref clock.

Signed-off-by: Martin Hoff <martin.hoff@silabs.com>
This patch put in the same place the default value for
SYS_CLOCK_TICKS_PER_SEC. It also apply the sleeptimer clock frequency
when sleeptimer is used for sys clock.

Signed-off-by: Martin Hoff <martin.hoff@silabs.com>
@sonarqubecloud
Copy link

sonarqubecloud bot commented Dec 3, 2025

@nashif nashif merged commit 4f1313b into zephyrproject-rtos:main Dec 3, 2025
30 of 32 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants