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

drivers: clock_control: stm32h7: disable PLL1 before configuring it #57337

Merged
merged 1 commit into from
Apr 28, 2023

Conversation

silbe
Copy link
Contributor

@silbe silbe commented Apr 27, 2023

If the boot loader already switched the system clock to PLL1 we need to switch back to HSI first and disable PLL1 before we can configure PLL1. Otherwise the register writes will simply be ignored and we'll end up with an inconsistent state.

Most of the code has been recycled from clock_stm32_ll_common.c.

If the boot loader already switched the system clock to PLL1 we need
to switch back to HSI first and disable PLL1 before we can configure
PLL1. Otherwise the register writes will simply be ignored and we'll
end up with an inconsistent state.

Most of the code has been recycled from `clock_stm32_ll_common.c`.

Signed-off-by: Sascha Silbe <sascha-pgp@se-silbe.de>
Signed-off-by: Sascha Silbe <sascha-pgp@silbe.org>
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Hello @silbe, and thank you very much for your first pull request to the Zephyr project!

A project maintainer just triggered our CI pipeline to run it against your PR and ensure it's compliant and doesn't cause any issues. You might want to take this opportunity to review the project's Contributor Expectations and make any updates to your pull request if necessary. 😊

Copy link
Contributor

@gautierg-st gautierg-st left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks

@carlescufi carlescufi merged commit 7628bd9 into zephyrproject-rtos:main Apr 28, 2023
@silbe
Copy link
Contributor Author

silbe commented May 2, 2023

Thanks for review & merge!

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.

6 participants