diff options
author | Thomas Abraham <thomas.abraham@linaro.org> | 2012-01-27 10:22:07 +0400 |
---|---|---|
committer | Kukjin Kim <kgene.kim@samsung.com> | 2012-01-27 10:22:07 +0400 |
commit | c8aa130b74cc5b112cb2b119d3b477abaaf6e5b2 (patch) | |
tree | 80ca3b93767b0aec09ed566924c196033ad12b49 /Documentation/devicetree/bindings/arm/exynos | |
parent | dcd6c92267155e70a94b3927bce681ce74b80d1f (diff) | |
download | linux-c8aa130b74cc5b112cb2b119d3b477abaaf6e5b2.tar.xz |
PM / Domains: Add OF support
A device node pointer is added to generic pm domain structure to associate
the domain with a node in the device tree. The platform code parses the
device tree to find available nodes representing the generic power domain,
instantiates the available domains and initializes them by calling
pm_genpd_init().
Nodes representing the devices include a phandle of the power domain to
which it belongs. As these devices get instantiated, the driver code
checkes for availability of a power domain phandle, converts the phandle
to a device node and uses the new pm_genpd_of_add_device() api to
associate the device with a power domain.
pm_genpd_of_add_device() runs through its list of registered power domains
and matches the OF node of the domain with the one specified as the
parameter. If a match is found, the device is associated with the matched
domain.
Cc: Rob Herring <rob.herring@calxeda.com>
Cc: Grant Likely <grant.likely@secretlab.ca>
Signed-off-by: Thomas Abraham <thomas.abraham@linaro.org>
Acked-by: Rafael J. Wysocki <rjw@sisk.pl>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
Diffstat (limited to 'Documentation/devicetree/bindings/arm/exynos')
0 files changed, 0 insertions, 0 deletions