PM / Domains: Add generic OF-based PM domain look-up
authorTomasz Figa <tomasz.figa@gmail.com>
Fri, 19 Sep 2014 18:27:36 +0000 (20:27 +0200)
committerMark Brown <broonie@kernel.org>
Fri, 12 Dec 2014 20:06:29 +0000 (20:06 +0000)
commit6920cae74d18abc2e1a2fda0970f8e9889ef3b7d
tree40e3f34ad97f32cfbfb390d85bc312c0f7210da0
parent0475cf9a2f972b7e12a093623ede7735e49835c1
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>
(cherry picked from commit aa42240ab2544a8bcb2efb400193826f57f3175e)
Signed-off-by: Mark Brown <broonie@kernel.org>
Conflicts:
include/linux/pm_domain.h
Documentation/devicetree/bindings/power/power_domain.txt [new file with mode: 0644]
drivers/base/power/domain.c
include/linux/pm_domain.h
kernel/power/Kconfig