| # Kconfig - Clock controller driver configuration options |
| # |
| # Copyright (c) 2016 Nordic Semiconductor ASA |
| # |
| # SPDX-License-Identifier: Apache-2.0 |
| |
| menuconfig CLOCK_CONTROL_NRF |
| bool "NRF Clock controller support" |
| depends on SOC_COMPATIBLE_NRF |
| help |
| Enable support for the Nordic Semiconductor nRFxx series SoC clock |
| driver. |
| |
| if CLOCK_CONTROL_NRF |
| |
| config CLOCK_CONTROL_NRF_IRQ_PRIORITY |
| int "Power Clock Interrupt Priority" |
| range 0 7 |
| default 1 |
| help |
| The interrupt priority for Power Clock interrupt. |
| |
| config CLOCK_CONTROL_NRF_M16SRC_DRV_NAME |
| string "NRFx 16MHz clock device name" |
| default "clk_m16src" |
| |
| config CLOCK_CONTROL_NRF_K32SRC_DRV_NAME |
| string "NRFx 32KHz clock device name" |
| default "clk_k32src" |
| |
| choice |
| prompt "32KHz clock source" |
| default CLOCK_CONTROL_NRF_K32SRC_XTAL |
| |
| config CLOCK_CONTROL_NRF_K32SRC_RC |
| bool "RC Oscillator" |
| |
| config CLOCK_CONTROL_NRF_K32SRC_XTAL |
| bool "Crystal Oscillator" |
| |
| endchoice |
| |
| config CLOCK_CONTROL_NRF_K32SRC_BLOCKING |
| bool "Blocking 32KHz crystal oscillator startup" |
| depends on CLOCK_CONTROL_NRF_K32SRC_XTAL |
| help |
| Clock control driver will spin wait in CPU sleep until 32KHz |
| crystal oscillator starts up. If not enabled, RC oscillator will |
| initially start running and automatically switch to crystal when |
| ready. |
| |
| choice |
| prompt "32KHz clock accuracy" |
| default CLOCK_CONTROL_NRF_K32SRC_500PPM if CLOCK_CONTROL_NRF_K32SRC_RC |
| default CLOCK_CONTROL_NRF_K32SRC_20PPM |
| |
| config CLOCK_CONTROL_NRF_K32SRC_500PPM |
| bool "251 ppm to 500 ppm" |
| |
| config CLOCK_CONTROL_NRF_K32SRC_250PPM |
| bool "151 ppm to 250 ppm" |
| |
| config CLOCK_CONTROL_NRF_K32SRC_150PPM |
| bool "101 ppm to 150 ppm" |
| |
| config CLOCK_CONTROL_NRF_K32SRC_100PPM |
| bool "76 ppm to 100 ppm" |
| |
| config CLOCK_CONTROL_NRF_K32SRC_75PPM |
| bool "51 ppm to 75 ppm" |
| |
| config CLOCK_CONTROL_NRF_K32SRC_50PPM |
| bool "31 ppm to 50 ppm" |
| |
| config CLOCK_CONTROL_NRF_K32SRC_30PPM |
| bool "21 ppm to 30 ppm" |
| |
| config CLOCK_CONTROL_NRF_K32SRC_20PPM |
| bool "0 ppm to 20 ppm" |
| |
| endchoice |
| |
| endif # CLOCK_CONTROL_NRF |