aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/platform_data/serial-sccnxp.h
diff options
context:
space:
mode:
authorStephen Boyd <sboyd@codeaurora.org>2013-07-24 11:37:30 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-07-26 16:13:29 -0700
commit6909dadd914259f459828b11c378ddea08d40ab6 (patch)
tree396af77914babdd211843fc976f2011918d7e955 /include/linux/platform_data/serial-sccnxp.h
parentmsm_serial: Fix sparse warnings (diff)
downloadlinux-rng-6909dadd914259f459828b11c378ddea08d40ab6.tar.xz
linux-rng-6909dadd914259f459828b11c378ddea08d40ab6.zip
msm_serial: Make baud_code detection more dynamic
Currently msm_set_baud_rate() assumes the uart clock rate is 1.8432 MHz. This is not always true, and limits our options to program the baud rate. Instead of assuming the rate and hard-coding the baud_code based on it, calculate the divider that we want and try to find the closest baud_code that matches. This allows us to support uarts with faster clock speeds. Signed-off-by: Stephen Boyd <sboyd@codeaurora.org> Acked-by: David Brown <davidb@codeaurora.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/platform_data/serial-sccnxp.h')
0 files changed, 0 insertions, 0 deletions