summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorTero Kristo <t-kristo@ti.com>2014-06-26 13:00:52 +0300
committerTero Kristo <t-kristo@ti.com>2014-06-26 13:00:52 +0300
commit75bcb3d7def5531babca06da0978145bdb764b21 (patch)
treeacbe80e5ecc88aad19e7beba9723a795e477af0d /include
parent602d7885d5f8cbd448b3a8ac8af8468db69d0e5e (diff)
parent0471e2b40319c0f07bd5eed7d969f875be44d913 (diff)
Merge remote-tracking branch 'nmenon/v3.14/never-upstream/power/voltagedomain' into pm-ti-linux-3.14.y-next
Conflicts: arch/arm/boot/dts/dra7.dtsi drivers/cpufreq/cpufreq-cpu0.c Signed-off-by: Tero Kristo <t-kristo@ti.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/pm_voltage_domain.h47
1 files changed, 47 insertions, 0 deletions
diff --git a/include/linux/pm_voltage_domain.h b/include/linux/pm_voltage_domain.h
new file mode 100644
index 00000000000..1ee7343ff67
--- /dev/null
+++ b/include/linux/pm_voltage_domain.h
@@ -0,0 +1,47 @@
+/*
+ * Voltage Domain header for users of voltage domain interface
+ *
+ * Copyright (C) 2013 Linaro Ltd <mturquette@linaro.org>
+ * Copyright (C) 2014 Texas Instruments Incorporated - http://www.ti.com/
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ *
+ * This program is distributed "as is" WITHOUT ANY WARRANTY of any
+ * kind, whether express or implied; without even the implied warranty
+ * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ */
+
+#ifndef __PM_VOLTAGE_DOMAIN__
+#define __PM_VOLTAGE_DOMAIN__
+
+#include <linux/clk.h>
+
+#if defined(CONFIG_VOLTAGE_DOMAIN)
+struct notifier_block *of_pm_voltdm_notifier_register(struct device *dev,
+ struct device_node *np,
+ struct clk *clk,
+ const char *supply,
+ int *voltage_latency);
+void of_pm_voltdm_notifier_unregister(struct notifier_block *nb);
+
+#else
+static inline struct notifier_block *of_pm_voltdm_notifier_register(
+ struct device *dev,
+ struct device_node *np,
+ struct clk *clk,
+ const char *supply,
+ int *voltage_latency);
+{
+ return ERR_PTR(-ENODEV);
+}
+
+static inline void of_pm_voltdm_notifier_unregister(struct notifier_block *nb)
+{
+}
+
+#endif /* VOLTAGE_DOMAIN */
+
+#endif /* __PM_VOLTAGE_DOMAIN__ */