Skip to content

tests: drivers: clock_control_api: move startup time to Kconfig #88956

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions tests/drivers/clock_control/clock_control_api/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Copyright (c) 2025 Nordic Semiconductor ASA
# SPDX-License-Identifier: Apache-2.0

config TEST_NRF_HF_STARTUP_TIME_US
int "Delay required for HF clock startup."
default 3000 if CONFIG_SOC_SERIES_NRF91X
default 500
depends on SOC_FAMILY_NORDIC_NRF
help
Delay in microseconds required for high-frequency
clock startup.

source "Kconfig.zephyr"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
CONFIG_TEST_NRF_HF_STARTUP_TIME_US=1000
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
CONFIG_TEST_NRF_HF_STARTUP_TIME_US=1000
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@
static const struct device_subsys_data subsys_data[] = {
{
.subsys = CLOCK_CONTROL_NRF_SUBSYS_HF,
.startup_us =
IS_ENABLED(CONFIG_SOC_SERIES_NRF91X) ?
3000 : 500
.startup_us = CONFIG_TEST_NRF_HF_STARTUP_TIME_US
},
#ifndef CONFIG_SOC_NRF52832
/* On nrf52832 LF clock cannot be stopped because it leads
Expand Down