Skip to content

Commit 15d8fd2

Browse files
mmahadevan108kartben
authored andcommitted
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 <[email protected]>
1 parent 8fde2b7 commit 15d8fd2

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

soc/nxp/rw/Kconfig.defconfig

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,4 +57,12 @@ if WIFI
5757
orsource "Kconfig.defconfig.wifi"
5858
endif # WIFI
5959

60+
if PM
61+
# For PM mode 3 we change this config to get better accuracy
62+
# when using the iKHz RTC clock as system clock.
63+
config SYS_CLOCK_TICKS_PER_SEC
64+
default 1000
65+
depends on $(dt_nodelabel_enabled,standby)
66+
endif
67+
6068
endif # SOC_SERIES_RW6XX

0 commit comments

Comments
 (0)