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

Decouple system timer and drivers: UART #15356

Conversation

pizi-nordic
Copy link
Collaborator

@pizi-nordic pizi-nordic commented Apr 11, 2019

During our work in timer area, we found that system clock frequency is used incorrectly in several drivers.
For example, it is used to obtain bus frequency needed to calculate baud rate of the UART interfaces.
If we select different system timer device, all these calculations become invalid.

This PR fixes the problem by obtaining all needed information directly from the DTS.
Brings us closer to: #15363

@pizi-nordic pizi-nordic force-pushed the decouple-system-timer-and-clock-uart branch from b016e11 to 519a76d Compare April 24, 2019 11:15
@galak galak added the dev-review To be discussed in dev-review meeting label Apr 24, 2019
@pizi-nordic pizi-nordic force-pushed the decouple-system-timer-and-clock-uart branch from 519a76d to 3265917 Compare April 25, 2019 11:03
The uart_cmsdk_apb driver used system clock frequency
as a base for baudrate calculation. This commit corrects
that by obtaining the needed value from DTS.

Signed-off-by: Piotr Zięcik <[email protected]>
The uart_pl011 driver used system clock frequency
as a base for baudrate calculation. This commit corrects
that by obtaining the needed value from DTS.

Signed-off-by: Piotr Zięcik <[email protected]>
The uart_cc32xx driver used system clock frequency
as a base for baudrate calculation. This commit corrects
that by obtaining the needed value from DTS.

Signed-off-by: Piotr Zięcik <[email protected]>
The uart_msp432p4xx driver used system clock frequency
as a base for baudrate calculation. This commit corrects
that by obtaining the needed value from DTS.

Signed-off-by: Piotr Zięcik <[email protected]>
The uart_qmsi driver used system clock frequency
as a base for baudrate calculation. This commit corrects
that by obtaining the needed value from DTS.

Signed-off-by: Piotr Zięcik <[email protected]>
The uart_stellaris driver used system clock frequency
as a base for baudrate calculation. This commit corrects
that by obtaining the needed value from DTS.

Signed-off-by: Piotr Zięcik <[email protected]>
@pizi-nordic pizi-nordic force-pushed the decouple-system-timer-and-clock-uart branch from 3265917 to 4d71c9a Compare April 25, 2019 11:51
@nashif nashif removed dev-review To be discussed in dev-review meeting labels May 2, 2019
@pizi-nordic pizi-nordic deleted the decouple-system-timer-and-clock-uart branch May 29, 2019 09:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants