1#
2# Copyright (c) 2024 Nordic Semiconductor ASA
3#
4# SPDX-License-Identifier: Apache-2.0
5#
6
7menu "Local domain DVFS library"
8
9module = LOCAL_DOMAIN_DVFS_LIB
10module-str = Local domain DVFS library
11source "subsys/logging/Kconfig.template.log_config"
12
13config NRFS_LOCAL_DOMAIN_DVFS_TEST
14	bool "Local domain DVFS test"
15	help
16	  Disable hw registers interaction for testing.
17
18config NRFS_LOCAL_DOMAIN_DVFS_SCALE_DOWN_AFTER_INIT
19	bool "Local domain scale down after init"
20	select DEPRECATED
21	help
22	  Request lowest oppoint after DVFS initialization.
23
24config NRFS_LOCAL_DOMAIN_DOWNSCALE_SAFETY_TIMEOUT_US
25	int "Voltage downscale procedure safety timeout in us"
26	range 1 10000000
27	default 1000000 if (NRFS_LOCAL_DOMAIN_DVFS_TEST || LOG)
28	default 1500
29
30config NRFS_LOCAL_DOMAIN_DOWNSCALE_FINISH_DELAY_TIMEOUT_US
31	int "Additional delay to let secdom finish dowscale procedure in us"
32	range 1 10000000
33	default 1000
34	help
35	  This value depends on the secdom core performance and shouldn't be touched by the user.
36
37config NRFS_LOCAL_DOMAIN_DVFS_HANDLER_TASK_STACK_SIZE
38	int "Stack size used for DVFS handling task"
39	range 256 2048
40	default 1024 if LOG
41	default 512
42
43config NRFS_LOCAL_DOMAIN_DVFS_HANDLER_TASK_PRIORITY
44	int "Priority of DVFS handling task"
45	range -16 NUM_PREEMPT_PRIORITIES
46	default 0
47
48endmenu
49