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: serial: pl011: Fix bug in support of Ambiq UART #66255

Closed

Conversation

BryanZhuAM
Copy link
Contributor

Ambiq UART requires specific busy wait during initialization for propagating powering control registers, original k_busy_wait() used here generated a dead loop because k_busy_wait() relays on timer, who's driver is initialized after UART(UART init in PRE_KERNEL_1, timer init in PRE_KERNEL_2), use delay function in Ambiq HAL to replace k_busy_wait() is much suitable here.

This issue impacts the OS's normal startup in apollo4p SOC

@zephyrbot zephyrbot added platform: Ambiq Ambiq area: UART Universal Asynchronous Receiver-Transmitter labels Dec 7, 2023
Ambiq UART requires specific busy wait during initialization for
propagating powering control registers, original k_busy_wait()
used here generated a dead loop because k_busy_wait() relays on
timer, who's driver is initialized after UART(UART init in
PRE_KERNEL_1, timer init in PRE_KERNEL_2), use delay function in
Ambiq HAL to replace k_busy_wait() is much suitable here.

Signed-off-by: Bryan Zhu <bzhu@ambiq.com>
@BryanZhuAM
Copy link
Contributor Author

The vendor HAL calling here generates compiling error due to PL011 is a general driver which is not dedicate to Ambiq UART, I am cancelling this PR until I find a proper way to fix it

@BryanZhuAM
Copy link
Contributor Author

Close this PR due to PL011 is a general driver which can not include vendor API inside

@BryanZhuAM BryanZhuAM closed this Dec 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: UART Universal Asynchronous Receiver-Transmitter platform: Ambiq Ambiq
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants