tegra: Enhance clock support to handle 16-bit clock divisors
authorSimon Glass <sjg@chromium.org>
Fri, 3 Feb 2012 15:13:54 +0000 (15:13 +0000)
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>
Thu, 29 Mar 2012 06:12:50 +0000 (08:12 +0200)
commit2e33559f3d4f111f969a7e0da29a264f41bae86a
tree0bdd226335a9230f04edb79f7a2042665a8603b0
parentc67822704b73dcfb86debf4c25151e43309af844
tegra: Enhance clock support to handle 16-bit clock divisors

I2C ports have a 16-bit clock divisor. Add code to handle this special
case so that I2C speeds below 150KHz are supported.

Signed-off-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Tom Warren <twarren@nvidia.com>
arch/arm/cpu/armv7/tegra2/clock.c
arch/arm/include/asm/arch-tegra2/clk_rst.h