]> rtime.felk.cvut.cz Git - zynq/linux.git/commit
Xilinx: ARM: xuartps: Updating set_baud_rate()
authorSoren Brinkmann <soren.brinkmann@xilinx.com>
Fri, 22 Jun 2012 13:48:15 +0000 (06:48 -0700)
committerJohn Linn <john.linn@xilinx.com>
Wed, 22 Aug 2012 16:53:37 +0000 (09:53 -0700)
commit7ed4dee7ed09d7950d9256b97300d8df76b6258b
treec1b3695c6ac177abedd830792ad5ba3b1f822873
parentbb1bff3c5dd6d7874a194bd4def174d5e4b15fcc
Xilinx: ARM: xuartps: Updating set_baud_rate()

The original algorithm to find the best baud rate dividers does not necessarily
find the best set of dividers. And in the worst case may even write illegal
values to the hardware.
The new function should make better use of the hardware capabilities and be able
to provide valid settings for a wider range of baud rates and also input clocks.

Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
drivers/tty/serial/xilinx_uartps.c