[coreboot-gerrit] Change in coreboot[master]: drivers/uart Add write support
Marcello Sylvester Bauer (Code Review)
gerrit at coreboot.org
Wed Apr 11 15:58:48 CEST 2018
Marcello Sylvester Bauer has uploaded this change for review. ( https://review.coreboot.org/25623
Change subject: drivers/uart Add write support
......................................................................
drivers/uart Add write support
Add write support for uart (pl011).
Change-Id: I5a33b3cd4b333fb244bc55747014a301021e25e0
Signed-off-by: Marcello Sylvester Bauer <info at marcellobauer.com>
---
M src/drivers/uart/pl011.c
1 file changed, 5 insertions(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/23/25623/1
diff --git a/src/drivers/uart/pl011.c b/src/drivers/uart/pl011.c
index 415dce1..6ec7a82 100644
--- a/src/drivers/uart/pl011.c
+++ b/src/drivers/uart/pl011.c
@@ -42,7 +42,11 @@
unsigned char uart_rx_byte(int idx)
{
- return 0;
+ struct pl011_uart *regs = uart_platform_baseptr(idx);
+
+ while ((read32(®s->fr) & PL011_UARTFR_RXFE))
+ ;
+ return read8(®s->dr);
}
#ifndef __PRE_RAM__
--
To view, visit https://review.coreboot.org/25623
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I5a33b3cd4b333fb244bc55747014a301021e25e0
Gerrit-Change-Number: 25623
Gerrit-PatchSet: 1
Gerrit-Owner: Marcello Sylvester Bauer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.coreboot.org/pipermail/coreboot-gerrit/attachments/20180411/acc90d04/attachment.html>
More information about the coreboot-gerrit
mailing list