]> git.karo-electronics.de Git - karo-tx-linux.git/commit
base: power: Add generic OF-based power domain look-up
authorTomasz Figa <t.figa@samsung.com>
Thu, 8 May 2014 12:49:13 +0000 (14:49 +0200)
committerNitin Garg <nitin.garg@freescale.com>
Fri, 16 Jan 2015 03:16:28 +0000 (21:16 -0600)
commit4aa055cb0634bc8d0389070104fe6aa7cfa99b8c
tree684b4ea3ff80c72ad73be9ce4b9909122da9a70d
parent61e1f068133fa5c5875cf0df46e6ee856a174535
base: power: Add generic OF-based power domain look-up

This patch introduces generic code to perform power domain look-up using
device tree and automatically bind devices to their power domains.
Generic device tree binding is introduced to specify power domains of
devices in their device tree nodes.

Backwards compatibility with legacy Samsung-specific power 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 Exynos power domain code gets converted to use
the generic framework in further patch.

Signed-off-by: Tomasz Figa <t.figa@samsung.com>
Reviewed-by: Mark Brown <broonie@linaro.org>
Reviewed-by: Kevin Hilman <khilman@linaro.org>
Reviewed-by: Philipp Zabel <philipp.zabel@gmail.com>
[on i.MX6 GK802]
Tested-by: Philipp Zabel <philipp.zabel@gmail.com>
Reviewed-by: Ulf Hansson <ulf.hansson@linaro.org>
[shawn.guo: http://thread.gmane.org/gmane.linux.kernel.samsung-soc/31029]
Signed-off-by: Shawn Guo <shawn.guo@freescale.com>
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