]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
zynqmp: Fix baudrate checking for Veloce
authorMichal Simek <michal.simek@xilinx.com>
Wed, 29 Apr 2015 07:58:26 +0000 (09:58 +0200)
committerMichal Simek <michal.simek@xilinx.com>
Wed, 29 Apr 2015 07:58:26 +0000 (09:58 +0200)
The patch "zynqmp: Fix veloce for RTL5.4"
(sha1: dc6795b3604e1a1533e7f9eabe31a70c0fef16b4)
fixed 4800 baudrate from 9600 but misses also fix baudrate checking
condition in the driver.
This patch fixes it.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
drivers/serial/serial_zynq.c

index c0f26517851e87dd996eb1cc40c466e6363df740..9278763164fae607791d5d4dabd0fe35a9d7e920 100644 (file)
@@ -53,7 +53,7 @@ static void uart_zynq_serial_setbrg(const int port)
        struct uart_zynq *regs = uart_zynq_ports[port];
 
        /* Covering case where input clock is so slow */
-       if (clock < 1000000 && gd->baudrate > 9600)
+       if (clock < 1000000 && gd->baudrate > 4800)
                gd->baudrate = 4800;
 
        baud = gd->baudrate;