summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-imx/gpc.c
diff options
context:
space:
mode:
authorAxel Haslam <ahaslam+renesas@baylibre.com>2016-02-15 11:10:51 +0100
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2016-02-15 23:18:15 +0100
commitfc5cbf0c94b6f7fd62fdddff892207290510945d (patch)
tree9ef04949dffbc2b8bdb545f1f998041910419628 /arch/arm/mach-imx/gpc.c
parentLinux 4.5-rc4 (diff)
downloadlinux-fc5cbf0c94b6f7fd62fdddff892207290510945d.tar.xz
linux-fc5cbf0c94b6f7fd62fdddff892207290510945d.zip
PM / Domains: Support for multiple states
Some hardware (eg. OMAP), has the ability to enter different low power modes for a given power domain. This allows for more fine grained control over the power state of the platform. As a typical example, some registers of the hardware may be implemented with retention flip-flops and be able to retain their state at lower voltages allowing for faster on/off latencies and an increased window of opportunity to enter an intermediate low power state other than "off" When trying to set a power domain to off, the genpd governor will choose the deepest state that will respect the qos constraints of all the devices and sub-domains on the power domain. The state chosen by the governor is saved in the "state_idx" field of the generic_pm_domain structure and shall be used by the power_off and power_on callbacks to perform the necessary actions to set the power domain into (and out of) the state indicated by state_idx. States must be declared in ascending order from shallowest to deepest, deepest meaning the state which takes longer to enter and exit. For platforms that don't declare any states, a single a single "off" state is used. Once all platforms are converted to use the state array, the legacy on/off latencies will be removed. [ Lina: Modified genpd state initialization and remove use of save_state_latency_ns in genpd timing data ] Suggested-by: Kevin Hilman <khilman@linaro.org> Signed-off-by: Lina Iyer <lina.iyer@linaro.org> Signed-off-by: Axel Haslam <ahaslam+renesas@baylibre.com> Acked-by: Ulf Hansson <ulf.hansson@linaro.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'arch/arm/mach-imx/gpc.c')
0 files changed, 0 insertions, 0 deletions