diff options
author | Tomasz Figa <tomasz.figa@gmail.com> | 2014-09-19 14:27:36 -0400 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2014-09-22 09:57:40 -0400 |
commit | aa42240ab2544a8bcb2efb400193826f57f3175e (patch) | |
tree | 00ce21c5dfdf974340f0e0921dd1a91bc77f3292 /kernel/power/Kconfig | |
parent | 86f1e15f5646b4855bd77025c950239650c4843e (diff) |
PM / Domains: Add generic OF-based PM domain look-up
This patch introduces generic code to perform PM domain look-up using
device tree and automatically bind devices to their PM domains.
Generic device tree bindings are introduced to specify PM domains of
devices in their device tree nodes.
Backwards compatibility with legacy Samsung-specific PM domain bindings
is provided, but for now the new code is not compiled when
CONFIG_ARCH_EXYNOS is selected to avoid collision with legacy code.
This will change as soon as the Exynos PM domain code gets converted to
use the generic framework in further patch.
This patch was originally submitted by Tomasz Figa when he was employed
by Samsung.
Link: http://marc.info/?l=linux-pm&m=139955349702152&w=2
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Acked-by: Rob Herring <robh@kernel.org>
Tested-by: Philipp Zabel <p.zabel@pengutronix.de>
Reviewed-by: Kevin Hilman <khilman@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'kernel/power/Kconfig')
-rw-r--r-- | kernel/power/Kconfig | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/kernel/power/Kconfig b/kernel/power/Kconfig index e4e4121fa327..897619b11fb2 100644 --- a/kernel/power/Kconfig +++ b/kernel/power/Kconfig | |||
@@ -302,6 +302,10 @@ config PM_GENERIC_DOMAINS_RUNTIME | |||
302 | def_bool y | 302 | def_bool y |
303 | depends on PM_RUNTIME && PM_GENERIC_DOMAINS | 303 | depends on PM_RUNTIME && PM_GENERIC_DOMAINS |
304 | 304 | ||
305 | config PM_GENERIC_DOMAINS_OF | ||
306 | def_bool y | ||
307 | depends on PM_GENERIC_DOMAINS && OF && !ARCH_EXYNOS | ||
308 | |||
305 | config CPU_PM | 309 | config CPU_PM |
306 | bool | 310 | bool |
307 | depends on SUSPEND || CPU_IDLE | 311 | depends on SUSPEND || CPU_IDLE |