1# Copyright (c) 2024 Silicon Laboratories Inc. 2# SPDX-License-Identifier: Apache-2.0 3 4rsource "*/Kconfig.defconfig" 5 6if SOC_FAMILY_SILABS_S2 7 8configdefault SYS_CLOCK_HW_CYCLES_PER_SEC 9 default $(dt_node_int_prop_int,/cpus/cpu@0,clock-frequency) if CORTEX_M_SYSTICK 10 default 32768 11 12configdefault SYS_CLOCK_TICKS_PER_SEC 13 default 128 if !TICKLESS_KERNEL && (SILABS_SLEEPTIMER_TIMER || GECKO_BURTC_TIMER) 14 default 32768 if SILABS_SLEEPTIMER_TIMER 15 default 1024 if GECKO_BURTC_TIMER 16 17configdefault SILABS_SLEEPTIMER_TIMER 18 default y 19 20configdefault CORTEX_M_SYSTICK 21 default n if SILABS_SLEEPTIMER_TIMER || GECKO_BURTC_TIMER 22 23# silabs_s2 uses simplicity_sdk hal library, which already have by default a zero latency 24# IRQs mechanism with a hardcoded value. In order to be aligned with simplicity_sdk, we 25# need to activate Zero Latency IRQ in Zephyr by default. The level (2) depends on the 26# hardcoded value in simplicity_sdk (CORE_ATOMIC_BASE_PRIORITY_LEVEL). Without this config, 27# if you use an IRQ with a priority of 0 or 1, irq_lock() and irq_unlock() have no effect 28# over this IRQ. 29 30configdefault ZERO_LATENCY_IRQS 31 default y 32 33configdefault ZERO_LATENCY_LEVELS 34 default 2 35 36endif 37