-
Notifications
You must be signed in to change notification settings - Fork 6.7k
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
dts: entropy: cleanup Kconfig and replace CONFIG_ENTROPY_NAME with DT_ENTROPY_NAME #24127
Conversation
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.
LGTM
All checks are passing now. checkpatch (informational only, not a failure)
Tip: The bot edits this comment instead of posting a new one, so you can check the comment's history to see earlier messages. |
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.
This seems to make some sense, in spite of it possibly starting a slide down a slope to a massive chosen
section.
Reworked this PR based on discussion in dev-review. Pulled in some commits from @mbolivar-nordic PR on FLASH. This now uses a chosen property to specify the entropy device. |
Move the include of files from include/devicetree/*.h to the end so that when those files are processes they have access to all previous defined macros. Signed-off-by: Kumar Gala <[email protected]>
Add a devicetree/zephyr.h header, which is meant to contain definitions for /chosen properties specific to Zephyr. Currently, this just deals with zephyr,entropy. We add a DT_CHOSEN_ZEPHYR_ENTROPY_LABEL macro which expands to the label for the node pointed to by zephyr,entropy. Signed-off-by: Martí Bolívar <[email protected]> Signed-off-by: Kumar Gala <[email protected]>
Replace CONFIG_ENTROPY_NAME with DT_CHOSEN_ZEPHYR_ENTROPY_LABEL. We now set zephyr,entropy in the chosen node of the device tree to the entropy device. This allows us to remove CONFIG_ENTROPY_NAME from dts_fixup.h. Also remove any other stale ENTROPY related defines in dts_fixup.h files. Signed-off-by: Kumar Gala <[email protected]>
Now that all entropy drivers use DTS we can remove HAS_DTS_ENTROPY being set everywhere as well as Kconfig ENTROPY_NAME since that is now coming from DT_ENTROPY_NAME. Signed-off-by: Kumar Gala <[email protected]>
No description provided.