8000 Add serial support for HiFive Premier P550 by Ivan-Velickovic · Pull Request #443 · au-ts/sddf · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Add serial support for HiFive Premier P550 #443

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

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

Ivan-Velickovic
Copy link
Collaborator
@Ivan-Velickovic Ivan-Velickovic commented Jul 1, 2025
  • remove 'SHADOW' from define

Signed-off-by: Ivan-Velickovic <i.velickovic@unsw.edu.au>
Signed-off-by: Ivan-Velickovic <i.velickovic@unsw.edu.au>
Signed-off-by: Ivan-Velickovic <i.velickovic@unsw.edu.au>
@Ivan-Velickovic
Copy link
Collaborator Author

Hmm this used to work but it looks like something broke/changed in the process of rebasing. Now I only get debug printing and nothing out via the UART driver.

@@ -96,6 +92,9 @@ static void set_baud(unsigned long baud)
/* Divisor Latch Access Bit (DLAB) of the LCR must be set.
* These registers share their address with the FIFO's.
*/
#if UART_DW_APB_SHADOW_REGISTERS
while (*REG_PTR(UART_USR) & 0x1);
Copy link
Contributor

Choose a reason for hiding this comment

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

Was adding this intentional?

That might cause it to hang

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This was done a while ago but from memory this was necessary and a bug in the current driver. I tried with and without this part of the patch but still nothing.

@Ivan-Velickovic
Copy link
Collaborator Author

I can confirm that on 21b10b4 the serial example works.

@Ivan-Velickovic
Copy link
Collaborator Author

It seems that while we get into tx_provide, we never end up touching the UART_THR register which means tx_fifo_not_full is never returning true for some reason.

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.

2 participants
0