From: Stephen Boyd Date: Wed, 24 Jul 2013 18:37:30 +0000 (-0700) Subject: msm_serial: Make baud_code detection more dynamic X-Git-Tag: v3.12-rc1~182^2~116 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6909dadd914259f459828b11c378ddea08d40ab6;p=pandora-kernel.git 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 Acked-by: David Brown Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed