diff options
author | Alex Frid <afrid@nvidia.com> | 2014-01-27 21:14:59 -0800 |
---|---|---|
committer | Diwakar Tundlam <dtundlam@nvidia.com> | 2014-01-31 12:46:51 -0800 |
commit | 7a0b3f24a0d72f096db318b8a10c544438853fc2 (patch) | |
tree | 5edb0379748a7ae4a3b2dfb03be7413806e47851 /arch/arm/mach-tegra/dvfs.h | |
parent | 03801a7af0d3c2354531c668f5d8248e249819be (diff) |
ARM: tegra: dvfs: Add dvfs rail notification
Added dvfs rail notification interface as a simple wrapper around the
respective regulator notification. This is done in order to simplify
registration for clients that are not (and must not be) consumers of
the dvfs-managed regulators.
Bug 1363113
Bug 1343366
Change-Id: I2e5a7aa5c1beb493c3a80fc36621582bd5089435
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/360764
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
Tested-by: Diwakar Tundlam <dtundlam@nvidia.com>
Diffstat (limited to 'arch/arm/mach-tegra/dvfs.h')
-rw-r--r-- | arch/arm/mach-tegra/dvfs.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/dvfs.h b/arch/arm/mach-tegra/dvfs.h index 6e294ef921b4..f817836cade3 100644 --- a/arch/arm/mach-tegra/dvfs.h +++ b/arch/arm/mach-tegra/dvfs.h @@ -249,6 +249,10 @@ void tegra_dvfs_rail_off(struct dvfs_rail *rail, ktime_t now); void tegra_dvfs_rail_on(struct dvfs_rail *rail, ktime_t now); 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); +int tegra_dvfs_rail_register_notifier(struct dvfs_rail *rail, + struct notifier_block *nb); +int tegra_dvfs_rail_unregister_notifier(struct dvfs_rail *rail, + struct notifier_block *nb); struct dvfs_rail *tegra_dvfs_get_rail_by_name(const char *reg_id); int tegra_dvfs_predict_millivolts(struct clk *c, unsigned long rate); |