Skip to content

[rtl] Add fixes for integration in Mocha - #20

Open
raylau1 wants to merge 3 commits into
mainfrom
mocha-fixes
Open

raylau1 wants to merge 3 commits into
mainfrom
mocha-fixes

Conversation

@raylau1

@raylau1 raylau1 commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

Depends on #14 (merged) and #13 to be merged first. Only the last commit is new.

@raylau1 raylau1 self-assigned this Nov 20, 2026

@marnovandermaas marnovandermaas left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Approved based on looking at the last commit (assuming you'll rebase).

Signed-off-by: Ray Lau <ray.lau@lowrisc.org>
- RBR read now clears any pending character timeout interrupt
- Enabling ERBFI enables rx_timeout interrupt in the OT UART core
- IIR[3] is asserted only when the character tiemout interrupt is active
  and there is no other higher priority interrupt
- Resetting the RCVR FIFO clears any pending character timeout interrupt
- When changing the parity enable in LCR, the timeout bit time duration of
  the OT UART core is automatically updated to reflect 4 character times

Signed-off-by: Ray Lau <ray.lau@lowrisc.org>
Mocha uses an old version of tlul_pkg without get_rsp_intg, which
causes the build to fail when UART 16550 is integrated into Mocha.

This commit removes the calls to get_rsp_intg as a fix.

Signed-off-by: Ray Lau <ray.lau@lowrisc.org>
@raylau1
raylau1 marked this pull request as ready for review November 27, 2026 14:16
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