-
Notifications
You must be signed in to change notification settings - Fork 8.2k
drivers/serial: stm32: Enable UART alternate clocks #45508
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/serial: stm32: Enable UART alternate clocks #45508
Conversation
|
@erwango Rebase done. |
GeorgeCGV
left a comment
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,
only minor corrections that would be great to have
erwango
left a comment
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.
Thanks for this contribution.
Nit: I tend to prefer titles that are a bit more specific:
drivers/serial: stm32: bla or drivers: serial: stm32: bla
erwango
left a comment
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.
Late couple of nit fixes.
Add support for an alternate clock. If available, alternate clock is enabled and used to get the device clock rate. Based on: #45053. Signed-off-by: Artur Lipowski <[email protected]>
This PR allows STM32 UART device drivers to use alternate clocks introduced by #45053.
Example board (STM32WB55 based) configuration to enable HSI clock on LPUART:
Based on: #45053