From 15d8fd2ad347ef4d6b8a27629c47b9aafc808355 Mon Sep 17 00:00:00 2001 From: Mahesh Mahadevan Date: Sun, 23 Jun 2024 03:51:03 +0100 Subject: [PATCH] soc: nxp_rw6xx: Update SYS_CLOCK_TICKS_PER_SEC for PM mode 3 Since the clock source when running in PM mode 3 is the slower 1KHx clock, we adjust the SYS_CLOCK_TICKS_PER_SEC value to get better accuracy. Signed-off-by: Mahesh Mahadevan --- soc/nxp/rw/Kconfig.defconfig | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/soc/nxp/rw/Kconfig.defconfig b/soc/nxp/rw/Kconfig.defconfig index 581dc43582f..3c4677b784c 100644 --- a/soc/nxp/rw/Kconfig.defconfig +++ b/soc/nxp/rw/Kconfig.defconfig @@ -57,4 +57,12 @@ if WIFI orsource "Kconfig.defconfig.wifi" endif # WIFI +if PM +# For PM mode 3 we change this config to get better accuracy +# when using the iKHz RTC clock as system clock. +config SYS_CLOCK_TICKS_PER_SEC + default 1000 + depends on $(dt_nodelabel_enabled,standby) +endif + endif # SOC_SERIES_RW6XX