ARM: tegra: Add dvfs rails
authorColin Cross <ccross@android.com>
Fri, 19 Nov 2010 23:38:32 +0000 (15:38 -0800)
committerColin Cross <ccross@android.com>
Thu, 2 Dec 2010 02:14:06 +0000 (18:14 -0800)
commit6270fe170861d0be064c87e37e35fb71c5c0f165
treee0dee8db1fc8c75c74c5e2ad4dfa99991aafa9e4
parent33745e8d519504487acf0daeccd0ad8a69cd4a18
ARM: tegra: Add dvfs rails

The previous version of dvfs handled requirements between two
different voltage rails by using two sets of dvfs tables, one
for each rail.  That method fails for vdd_aon, which must be
within 170 mV of vdd_core.

Instead, have each dvfs clock only set the voltage rail that
it directly depends on, and add a relationship system to the
voltage rails.  When the voltage changes on one rail, it calls
update on all the rails that depend on it.  The dependent rails
compare the new voltage of the original rail to their own
voltage, and update their own voltage as necessary.

Change-Id: I17b30a61c7c0c01e44702ab486238789abd47330
Signed-off-by: Colin Cross <ccross@android.com>
arch/arm/mach-tegra/clock.c
arch/arm/mach-tegra/clock.h
arch/arm/mach-tegra/dvfs.c
arch/arm/mach-tegra/dvfs.h
arch/arm/mach-tegra/tegra2_dvfs.c