drivers: clock_control: Smartbond: Add runtime frequency support
RC32K and RCX low power clocks require runtime calibration to work correctly. Frequency of those clock can differ from chip to chip, one constant value from Kconfig may not be best when low power clock (sourced from RCX or RC32K) is used for system tick. This code modifies global z_clock_hw_cycles_per_sec variable that is used when TIMER_READS_ITS_FREQUENCY_AT_RUNTIME is enabled in Kconfig. Signed-off-by: Jerzy Kasenberg <jerzy.kasenberg@codecoup.pl>
This commit is contained in:
parent
32c04c6b25
commit
82ca880fb9
2 changed files with 31 additions and 0 deletions
|
@ -14,3 +14,4 @@ config SOC_SERIES_DA1469X
|
|||
select CLOCK_CONTROL_SMARTBOND
|
||||
select PLATFORM_SPECIFIC_INIT
|
||||
select PM_DEVICE if PM
|
||||
imply TIMER_READS_ITS_FREQUENCY_AT_RUNTIME
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue