]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
USB: CP2101 Support AN205 baud rates
authorCraig Shelley <craig@microtron.org.uk>
Thu, 26 Feb 2009 22:19:22 +0000 (22:19 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 24 Mar 2009 23:20:44 +0000 (16:20 -0700)
commitef8b6bcb39559d956f897acf7ebe600d5105d479
tree2d5f13e77ac265aa98d510173aa70695184c6fb3
parent31dbb803464d75b96212cce9052dfeaeac0819de
USB: CP2101 Support AN205 baud rates

This patch adds support for the extended range of baud rates supported
by CP2102 and CP2103 devices described in SiLabs AN205.  An additional
function cp2101_quantise_baudrate rounds the baud rate as per AN205
Table 1.  A modification to the baud rate calculation removes a rounding
error, allowing the full range of baud rates to be used.

Signed-off-by: Craig Shelley <craig@microtron.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/serial/cp2101.c