Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5038bb8c authored by Dave Gerlach's avatar Dave Gerlach Committed by Tomi Valkeinen
Browse files

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: default avatarDave Gerlach <d-gerlach@ti.com>
Acked-by: default avatarLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
parent 420a4882
Loading
Loading
Loading
Loading
+6 −0
Original line number Original line Diff line number Diff line
@@ -1264,12 +1264,18 @@ static int dss_runtime_suspend(struct device *dev)
{
{
	dss_save_context();
	dss_save_context();
	dss_set_min_bus_tput(dev, 0);
	dss_set_min_bus_tput(dev, 0);

	pinctrl_pm_select_sleep_state(dev);

	return 0;
	return 0;
}
}


static int dss_runtime_resume(struct device *dev)
static int dss_runtime_resume(struct device *dev)
{
{
	int r;
	int r;

	pinctrl_pm_select_default_state(dev);

	/*
	/*
	 * Set an arbitrarily high tput request to ensure OPP100.
	 * Set an arbitrarily high tput request to ensure OPP100.
	 * What we should really do is to make a request to stay in OPP100,
	 * What we should really do is to make a request to stay in OPP100,