-
Notifications
You must be signed in to change notification settings - Fork 676
[nrf fromlist] drivers: nrf_ironside dvfs service #2921
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
Conversation
4bc4cf5
to
d7a066a
Compare
d7a066a
to
8daeb2e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, some minor stuff
824b852
to
7a4a910
Compare
d416e17
to
726cc7e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds new support for the IRONside DVFS service by introducing DVFS service API, configuration options, and driver implementation while making NRFS DVFS not enabled by default.
- Conditional inclusion of DVFS service headers and sources in Nordic HAL CMake configurations.
- New header and driver implementation to define DVFS oppoints, error codes, and DVFS operations.
- Addition of Kconfig options to enable the DVFS service and set the oppoint change mutex timeout.
Reviewed Changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.
Show a summary per file
File | Description |
---|---|
modules/hal_nordic/nrfs/CMakeLists.txt | Replaces unconditional includes with conditional ones for DVFS service support. |
include/zephyr/drivers/firmware/nrf_ironside/dvfs.h | Introduces DVFS API definitions, error codes, and inline validations. |
drivers/firmware/nrf_ironside/dvfs.c | Implements DVFS oppoint change flow and related hardware configurations. |
drivers/firmware/nrf_ironside/Kconfig | Adds configuration options for the DVFS service and timeout parameter. |
drivers/firmware/nrf_ironside/CMakeLists.txt | Conditionally includes the DVFS driver source based on the service configuration. |
Comments suppressed due to low confidence (2)
modules/hal_nordic/nrfs/CMakeLists.txt:17
- The conditional macro 'CONFIG_NRFS_HAS_DVFS_SERVICE' used here differs from the Kconfig option 'NRF_IRONSIDE_DVFS_SERVICE'. Consider aligning the configuration macro names for consistency.
zephyr_include_directories_ifdef(CONFIG_NRFS_HAS_DVFS_SERVICE ${HELPERS_DIR})
modules/hal_nordic/nrfs/CMakeLists.txt:22
- The use of 'CONFIG_NRFS_HAS_DVFS_SERVICE' here is inconsistent with the Kconfig definition 'NRF_IRONSIDE_DVFS_SERVICE'. Standardize the configuration macro across the codebase.
zephyr_library_sources_ifdef(CONFIG_NRFS_HAS_DVFS_SERVICE ${HELPERS_DIR}/dvfs_oppoint.c)
int "IRONSside DVFS change oppoint mutex timeout" | ||
default 100 | ||
help | ||
Maximum tiemout when waiting for DVFS oppoint change mutex lock. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The word 'tiemout' appears to be a misspelling. It should be corrected to 'timeout'.
Maximum tiemout when waiting for DVFS oppoint change mutex lock. | |
Maximum timeout when waiting for DVFS oppoint change mutex lock. |
Copilot uses AI. Check for mistakes.
726cc7e
to
1af32a0
Compare
Added handling of new IRONside DVFS service. NRFS DVFS is now not enabled by default. Signed-off-by: Łukasz Stępnicki <lukasz.stepnicki@nordicsemi.no> (cherry picked from commit a0777734de0c33a1341ce57747590fc268cf85ea)
1af32a0
to
a66fce3
Compare
|
Added handling of new IRONside DVFS service.
NRFS DVFS is now not enabled by default.
Upstream PR #: 90755