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>
Wed, 1 Dec 2010 01:32:32 +0000 (17:32 -0800)
commita5880a9e5bb40fbae55de60051d69a29091053c3
treee61272cc5ae771f435ce4e20ed9e2c7f933cd633
parentacfa747baf73922021a047f2d87a2d866f5dbab5
serial: mfd: adjust the baud rate setting

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>
Cc: stable <stable@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/serial/mfd.c