drivers: clock_control: nrf: Add option to use external LF source
Extended clock configuration to allow usage of external clock source for nrf52 series. Signed-off-by: Krzysztof Chruscinski <krzysztof.chruscinski@nordicsemi.no>
This commit is contained in:
parent
c2100c9dd4
commit
c661cc6c78
|
@ -37,6 +37,14 @@ config CLOCK_CONTROL_NRF_K32SRC_SYNTH
|
|||
depends on !SOC_SERIES_NRF91X
|
||||
bool "Synthesized from HFCLK"
|
||||
|
||||
config CLOCK_CONTROL_NRF_K32SRC_EXT_LOW_SWING
|
||||
depends on SOC_SERIES_NRF52X
|
||||
bool "External low swing"
|
||||
|
||||
config CLOCK_CONTROL_NRF_K32SRC_EXT_FULL_SWING
|
||||
depends on SOC_SERIES_NRF52X
|
||||
bool "External full swing"
|
||||
|
||||
endchoice
|
||||
|
||||
config CLOCK_CONTROL_NRF_K32SRC_BLOCKING
|
||||
|
|
|
@ -24,6 +24,12 @@
|
|||
#ifdef CONFIG_CLOCK_CONTROL_NRF_K32SRC_SYNTH
|
||||
#define CLOCK_CONTROL_NRF_K32SRC NRF_CLOCK_LFCLK_Synth
|
||||
#endif
|
||||
#ifdef CONFIG_CLOCK_CONTROL_NRF_K32SRC_EXT_LOW_SWING
|
||||
#define CLOCK_CONTROL_NRF_K32SRC NRF_CLOCK_LFCLK_Xtal_Low_Swing
|
||||
#endif
|
||||
#ifdef CONFIG_CLOCK_CONTROL_NRF_K32SRC_EXT_FULL_SWING
|
||||
#define CLOCK_CONTROL_NRF_K32SRC NRF_CLOCK_LFCLK_Xtal_Full_Swing
|
||||
#endif
|
||||
|
||||
/* Define 32KHz clock accuracy */
|
||||
#ifdef CONFIG_CLOCK_CONTROL_NRF_K32SRC_500PPM
|
||||
|
|
Loading…
Reference in a new issue