CLOCK_CONTROL is required for fast instances of UART and COUNTER, help select it when possible. The fast instances are UARTE120, TIMER120 and TIMER121, and CLOCK_CONTROL is not supported for CPUFLPR and CPUPPR even when the fast instances are used. Signed-off-by: Bjarki Arge Andreasen <bjarki.andreasen@nordicsemi.no>
34 lines
1.1 KiB
Plaintext
34 lines
1.1 KiB
Plaintext
# Copyright (c) 2017 - 2018, Nordic Semiconductor ASA
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
config COUNTER_NRF_TIMER
|
|
def_bool y
|
|
depends on DT_HAS_NORDIC_NRF_TIMER_ENABLED
|
|
|
|
config COUNTER_NRF_RTC
|
|
def_bool y
|
|
depends on DT_HAS_NORDIC_NRF_RTC_ENABLED
|
|
|
|
config COUNTER_NRFX_TIMER_USE_CLOCK_CONTROL
|
|
def_bool y
|
|
depends on $(dt_nodelabel_enabled,timer120) || \
|
|
$(dt_nodelabel_enabled,timer121)
|
|
depends on !SOC_NRF54H20_CPUFLPR && !SOC_NRF54H20_CPUPPR
|
|
select CLOCK_CONTROL
|
|
|
|
# Internal flag which detects if PPI wrap feature is enabled for any instance
|
|
config COUNTER_RTC_WITH_PPI_WRAP
|
|
def_bool $(dt_nodelabel_bool_prop,rtc0,ppi-wrap) || \
|
|
$(dt_nodelabel_bool_prop,rtc1,ppi-wrap) || \
|
|
$(dt_nodelabel_bool_prop,rtc2,ppi-wrap)
|
|
depends on COUNTER_NRF_RTC
|
|
select NRFX_PPI if HAS_HW_NRF_PPI
|
|
select NRFX_DPPI if HAS_HW_NRF_DPPIC
|
|
|
|
# Internal flag which detects if fixed top feature is enabled for any instance
|
|
config COUNTER_RTC_CUSTOM_TOP_SUPPORT
|
|
def_bool !$(dt_nodelabel_bool_prop,rtc0,fixed-top) || \
|
|
!$(dt_nodelabel_bool_prop,rtc1,fixed-top) || \
|
|
!$(dt_nodelabel_bool_prop,rtc2,fixed-top)
|
|
depends on COUNTER_NRF_RTC
|