Skip to content

Commit 510ba26

Browse files
tests: drivers: clock_control_api: move startup time to Kconfig
Moved target dependent startup time from header file to Kconfig option to allow adding new targets with new .conf file rather that modyfing source of the test. Adjusted startup time for nRF54L09 and nRF54L20. Signed-off-by: Michał Stasiak <[email protected]>
1 parent eca5790 commit 510ba26

File tree

4 files changed

+16
-3
lines changed

4 files changed

+16
-3
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Copyright (c) 2025 Nordic Semiconductor ASA
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
config TEST_NRF_HF_STARTUP_TIME_US
5+
int "Delay required for HF clock startup."
6+
default 3000 if CONFIG_SOC_SERIES_NRF91X
7+
default 500
8+
depends on SOC_FAMILY_NORDIC_NRF
9+
help
10+
Delay in microseconds required for high-frequency
11+
clock startup.
12+
13+
source "Kconfig.zephyr"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
CONFIG_TEST_NRF_HF_STARTUP_TIME_US=1000
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
CONFIG_TEST_NRF_HF_STARTUP_TIME_US=1000

tests/drivers/clock_control/clock_control_api/src/nrf_device_subsys.h

+1-3
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@
1010
static const struct device_subsys_data subsys_data[] = {
1111
{
1212
.subsys = CLOCK_CONTROL_NRF_SUBSYS_HF,
13-
.startup_us =
14-
IS_ENABLED(CONFIG_SOC_SERIES_NRF91X) ?
15-
3000 : 500
13+
.startup_us = CONFIG_TEST_NRF_HF_STARTUP_TIME_US
1614
},
1715
#ifndef CONFIG_SOC_NRF52832
1816
/* On nrf52832 LF clock cannot be stopped because it leads

0 commit comments

Comments
 (0)