Skip to content
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

soc: nxp: Make clock init weak and global #84629

Merged
merged 1 commit into from
Feb 5, 2025

Conversation

decsny
Copy link
Member

@decsny decsny commented Jan 27, 2025

Make clock init functions in SOC level weak and global so they can be overriden by board/app level.

Ideally these should have been put at board level but for now just make them weak so they can be overriden without breaking anything.

Fixes #64515

butok
butok previously approved these changes Jan 28, 2025
@@ -58,7 +58,7 @@ static void soc_rdc_init(void)

#endif

static void soc_clock_init(void)
void __weak soc_clock_init(void)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Be consistent and use __weak before void always, like __weak void clock_init()

@decsny decsny added this to the v4.1.0 milestone Feb 3, 2025
Make clock init functions in SOC level weak and global so they can be
overriden by board/app level.

Ideally these should have been put at board level but for now just make
them weak so they can be overriden without breaking anything.

Signed-off-by: Declan Snyder <[email protected]>
@kartben kartben merged commit b83f8ed into zephyrproject-rtos:main Feb 5, 2025
24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make NXP SOC clock init functions weak
7 participants