ARM: tegra: dvfs: Predict required voltage for a given freq
Naveen Kumar Arepalli [Tue, 7 Jan 2014 04:48:53 +0000 (09:48 +0530)]
Export the tegra_dvfs_predict_millivolts interface to drivers to be
used during tuning and getting the minimum core voltage for a given
frequency.

Bug 1423429

Reviewed-on: http://git-master/r/359374
(cherry picked from commit 363ba00eab262307efc02880db06b1c5fb67fa92)

Change-Id: I9dbadd831fa2f5b940ffb305a25ab56de63eec6e
Signed-off-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Signed-off-by: R Raj Kumar <rrajk@nvidia.com>
Reviewed-on: http://git-master/r/363809
(cherry picked from commit 1c92be1a06a6ccb944dbcc755dd3434e74ccaca1)
Reviewed-on: http://git-master/r/410188
GVS: Gerrit_Virtual_Submit
Reviewed-by: Shreshtha Sahu <ssahu@nvidia.com>
Tested-by: Shreshtha Sahu <ssahu@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

arch/arm/mach-tegra/dvfs.c
arch/arm/mach-tegra/dvfs.h

index f0ab7df..b1414a1 100644 (file)
@@ -830,6 +830,7 @@ int tegra_dvfs_predict_millivolts(struct clk *c, unsigned long rate)
                tegra_dvfs_get_millivolts_pll(c->dvfs);
        return predict_millivolts(c, millivolts, rate);
 }
+EXPORT_SYMBOL(tegra_dvfs_predict_millivolts);
 
 int tegra_dvfs_predict_peak_millivolts(struct clk *c, unsigned long rate)
 {
index 4565529..cc9ef7a 100644 (file)
@@ -250,7 +250,6 @@ void tegra_dvfs_rail_pause(struct dvfs_rail *rail, ktime_t delta, bool on);
 int tegra_dvfs_rail_set_mode(struct dvfs_rail *rail, unsigned int mode);
 struct dvfs_rail *tegra_dvfs_get_rail_by_name(const char *reg_id);
 
-int tegra_dvfs_predict_millivolts(struct clk *c, unsigned long rate);
 int tegra_dvfs_predict_peak_millivolts(struct clk *c, unsigned long rate);
 const int *tegra_dvfs_get_millivolts_pll(struct dvfs *d);