]> rtime.felk.cvut.cz Git - lisovros/linux_canprio.git/commit
serial: mfd: adjust the baud rate setting
authorFeng Tang <feng.tang@intel.com>
Fri, 19 Nov 2010 03:01:48 +0000 (11:01 +0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 9 Dec 2010 21:33:22 +0000 (13:33 -0800)
commitb792e028e3762b3611ad0f71e794fde75c67c722
treeadb007fed747b7e5b1ac7eb3f26f96090cf6ef0c
parentb2abb007db6c0705f6097b1d9d5af6453aed7b86
serial: mfd: adjust the baud rate setting

commit a5880a9e5bb40fbae55de60051d69a29091053c3 upstream.

Previous baud rate setting code only has been tested with 3.5M/9600/
115200/230400/460800 bps, and recently we got a 3M bps device to test,
which needs to modify current MUL register setting, and with this
patch 2.5M/2M/1.5M/1M/0.5M should also work as they just use a MUL
value scale down from 3M's.

Also got some reference register setting from silicon guys for
different baud rates, which tries to keep the pre-scalar register value
to 16.

Signed-off-by: Feng Tang <feng.tang@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/serial/mfd.c