PM / Domains: Allow domain power states to be read from DT
authorLina Iyer <lina.iyer@linaro.org>
Fri, 14 Oct 2016 17:47:51 +0000 (10:47 -0700)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 21 Oct 2016 20:20:15 +0000 (22:20 +0200)
commit30f604283e05d34cb10108c7ba017e5f4fc9d62c
tree957fccac2026f12a7e4cc0cb2f45f5dfbd763d55
parent405f7226014093a2809f27ba32a8230e770ac876
PM / Domains: Allow domain power states to be read from DT

This patch allows domains to define idle states in the DT. SoC's can
define domain idle states in DT using the "domain-idle-states" property
of the domain provider. Add API to read the idle states from DT that can
be set in the genpd object.

This patch is based on the original patch by Marc Titinger.

Signed-off-by: Marc Titinger <mtitinger+renesas@baylibre.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Lina Iyer <lina.iyer@linaro.org>
Reviewed-by: Kevin Hilman <khilman@baylibre.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/base/power/domain.c
include/linux/pm_domain.h