Skip to content
Permalink
Browse files

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>
  • Loading branch information...
nordic-krch authored and ioannisg committed Jul 2, 2019
1 parent c2100c9 commit c661cc6c781aaace5759921bdb570d552618492c
Showing with 14 additions and 0 deletions.
  1. +8 −0 drivers/clock_control/Kconfig.nrf
  2. +6 −0 include/drivers/clock_control/nrf_clock_control.h
@@ -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

0 comments on commit c661cc6

Please sign in to comment.
You can’t perform that action at this time.