msm_serial: fix serial on trout
authorAbhijeet Dharmapurikar <adharmap@codeaurora.org>
Thu, 20 May 2010 22:20:23 +0000 (15:20 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 4 Jun 2010 20:37:16 +0000 (13:37 -0700)
commit18c79d76ece432a48c985ea404800f8ee154ada2
tree864f598be56999e4437e01a413d1c72beb78d75e
parentad8456361fa19068cf49b50a4f98e41b73c08e76
msm_serial: fix serial on trout

Set the mnd counter based on uartclk. This fixes a problem
on 7x30 where the uartclk is 19.2Mhz rather than the usual
4.8Mhz.

Trout incorrectly reports uartclk to be running at 19.2Mhz
It is actually running at 4.8Mhz.  For trout force mnd
counter values as if uartclk was fed by tcxo/4.

Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
[dwalker@codeaurora.org: inlined, moved into header, added comments.]
Signed-off-by: Daniel Walker <dwalker@codeaurora.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/serial/msm_serial.c
drivers/serial/msm_serial.h