Skip to content

dockchannel_uart: Add Dockchannel UART as fallback for the hardware UART - #546

Merged
svenpeter42 merged 1 commit into
mainfrom
dockchannel-uart
Mar 1, 2026
Merged

svenpeter42 merged 1 commit into
mainfrom
dockchannel-uart

Conversation

@svenpeter42

Copy link
Copy Markdown
Member

No description provided.

@svenpeter42
svenpeter42 requested a review from jannau as a code owner February 26, 2026 16:28
Comment thread src/dockchannel_uart.c Resolved

@jannau jannau left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Is there a reason why this doesn't implement EARLY_UART using dockchannel-uart? I thought you already had code for it.

Comment thread src/dockchannel_uart.c
return;

while (read32(uart_base + DATA_TX_FREE) == 0)
;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Do we want to change our .clang-format to format this on a single line? It looks a little bit ugly as is

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Yeah, I'll see what I can do later this week

@jannau jannau Mar 1, 2026 •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

feel free to merge as. We can reformat and change clang-format later. The option should be AllowShortBlocksOnASingleLine: Empty
edit: but requires writing it as

while (read32(uart_base + DATA_TX_FREE) == 0) {}

@svenpeter42

Copy link
Copy Markdown
Member Author

Is there a reason why this doesn't implement EARLY_UART using dockchannel-uart? I thought you already had code for it.

Yeah, it's just untested and I haven't gotten around to collecting the MMIO base for all SoCs. I was planning to submit both at a later time but Nick found this useful already

@svenpeter42
svenpeter42 merged commit e3b42cb into main Mar 1, 2026
7 checks passed
@svenpeter42
svenpeter42 deleted the dockchannel-uart branch July 10, 2026 09:43
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.

3 participants