diff mbox

[U-Boot] Fix a bug with PL010s running at 19200 baud

Message ID 20170407164822.3hhzxtw3uu4qgxlv@debian
State Accepted
Commit b2aa88941110868485d38719d119ab79ef9cddfe
Delegated to: Tom Rini
Headers show

Commit Message

Alyssa Rosenzweig April 7, 2017, 4:48 p.m. UTC
I don't have the hardware test this, but it is almost certainly a typo
in the code dating back to at least 2004.

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
---
 drivers/serial/serial_pl01x.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Tom Rini April 14, 2017, 9:09 p.m. UTC | #1
On Fri, Apr 07, 2017 at 09:48:22AM -0700, Alyssa Rosenzweig wrote:

> I don't have the hardware test this, but it is almost certainly a typo
> in the code dating back to at least 2004.
> 
> Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>

Applied to u-boot/master, thanks!
diff mbox

Patch

diff --git a/drivers/serial/serial_pl01x.c b/drivers/serial/serial_pl01x.c
index a49134a95a..941b424a4c 100644
--- a/drivers/serial/serial_pl01x.c
+++ b/drivers/serial/serial_pl01x.c
@@ -117,7 +117,7 @@  static int pl01x_generic_setbrg(struct pl01x_regs *regs, enum pl01x_type type,
 			divisor = UART_PL010_BAUD_9600;
 			break;
 		case 19200:
-			divisor = UART_PL010_BAUD_9600;
+			divisor = UART_PL010_BAUD_19200;
 			break;
 		case 38400:
 			divisor = UART_PL010_BAUD_38400;