diff options
author | Dave Gerlach <d-gerlach@ti.com> | 2014-10-31 17:28:57 -0400 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2015-12-17 06:42:31 -0500 |
commit | 5038bb8cb2c9dfec6d188bdf9fc0d7a358e1e2ee (patch) | |
tree | 25f76498413c7f6bd12f468fd6819afcf7957f8d | |
parent | 420a488278e86ab25354f54800be7df52525e17d (diff) |
OMAPDSS: adopt pinctrl support
Update omapdss driver to set the state of the pins to:
- "default on resume
- "sleep" on suspend
By optionally putting the pins into sleep state in the suspend callback
we can accomplish two things.
- minimize current leakage from pins and thus save power,
- prevent the IP from driving pins output in an uncontrolled manner,
which may happen if the power domain drops the domain regulator.
Signed-off-by: Dave Gerlach <d-gerlach@ti.com>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
-rw-r--r-- | drivers/video/fbdev/omap2/dss/dss.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/video/fbdev/omap2/dss/dss.c b/drivers/video/fbdev/omap2/dss/dss.c index 9200a8668b49..f95ff319e68e 100644 --- a/drivers/video/fbdev/omap2/dss/dss.c +++ b/drivers/video/fbdev/omap2/dss/dss.c | |||
@@ -1264,12 +1264,18 @@ static int dss_runtime_suspend(struct device *dev) | |||
1264 | { | 1264 | { |
1265 | dss_save_context(); | 1265 | dss_save_context(); |
1266 | dss_set_min_bus_tput(dev, 0); | 1266 | dss_set_min_bus_tput(dev, 0); |
1267 | |||
1268 | pinctrl_pm_select_sleep_state(dev); | ||
1269 | |||
1267 | return 0; | 1270 | return 0; |
1268 | } | 1271 | } |
1269 | 1272 | ||
1270 | static int dss_runtime_resume(struct device *dev) | 1273 | static int dss_runtime_resume(struct device *dev) |
1271 | { | 1274 | { |
1272 | int r; | 1275 | int r; |
1276 | |||
1277 | pinctrl_pm_select_default_state(dev); | ||
1278 | |||
1273 | /* | 1279 | /* |
1274 | * Set an arbitrarily high tput request to ensure OPP100. | 1280 | * Set an arbitrarily high tput request to ensure OPP100. |
1275 | * What we should really do is to make a request to stay in OPP100, | 1281 | * What we should really do is to make a request to stay in OPP100, |