From mboxrd@z Thu Jan 1 00:00:00 1970 From: Hebbar Gururaja Date: Fri, 31 May 2013 10:25:10 +0000 Subject: [PATCH 10/11] video: da8xx-fb: adopt pinctrl support Message-Id: <1369995191-20855-11-git-send-email-gururaja.hebbar@ti.com> List-Id: References: <1369995191-20855-1-git-send-email-gururaja.hebbar@ti.com> In-Reply-To: <1369995191-20855-1-git-send-email-gururaja.hebbar@ti.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-arm-kernel@lists.infradead.org Amend the da8xx-fb controller to optionally take a pin control handle and set the state of the pins to: - "default" on boot, resume - "sleep" on suspend() By optionally putting the pins into sleep state in the suspend callback we can accomplish two things. - One is to minimize current leakage from pins and thus save power, - second, we can prevent the IP from driving pins output in an uncontrolled manner, which may happen if the power domain drops the domain regulator. If any of the above pin states are missing in dt, a warning message about the missing state is displayed. If certain pin-states are not available, to remove this warning message pass respective state name with null phandler. Todo: - if an idle state is available for pins, add support for it. Signed-off-by: Hebbar Gururaja Cc: Florian Tobias Schandinat Cc: linux-fbdev@vger.kernel.org --- :100644 100644 0810939... 10c8036... M drivers/video/da8xx-fb.c drivers/video/da8xx-fb.c | 48 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/drivers/video/da8xx-fb.c b/drivers/video/da8xx-fb.c index 0810939..10c8036 100644 --- a/drivers/video/da8xx-fb.c +++ b/drivers/video/da8xx-fb.c @@ -36,6 +36,7 @@ #include #include #include +#include #include