ARM: tegra11: clock: Force out-of-table shared bus max limit
authorAlex Frid <afrid@nvidia.com>
Fri, 25 Jan 2013 08:05:20 +0000 (00:05 -0800)
committerDan Willemsen <dwillemsen@nvidia.com>
Sat, 14 Sep 2013 19:56:45 +0000 (12:56 -0700)
commit3f564521794acc188098f791b3aa9c5c7de7af4b
tree555dbb820c37063312832e73db787a5ffcf14e54
parenta696cf77b5b4d44c9f3cc6b3f4c240c24571678f
ARM: tegra11: clock: Force out-of-table shared bus max limit

So far, rate cap set by shared bus user with SHARED_CEILING attribute
was not clipped to possible bus rates. Since final rounding on shared
bus is always in up direction, bus clock could run at rate above the
ceiling that does not exactly match one of available bus rates. This
is fixed now by rounding cap rate down to possible bus rate before
final shared rate is determined.

Change-Id: If1052b657b60f9a6e07b730f8a8c0f36b17fdbdd
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/194845
(cherry picked from commit d6f3ddb423827893ea586c5668a56ead5deb87d2)
Reviewed-on: http://git-master/r/196811
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>
arch/arm/mach-tegra/clock.h
arch/arm/mach-tegra/tegra11_clocks.c
arch/arm/mach-tegra/tegra11_emc.c
arch/arm/mach-tegra/tegra_emc.h