Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754873Ab3EaKOB (ORCPT ); Fri, 31 May 2013 06:14:01 -0400 Received: from comal.ext.ti.com ([198.47.26.152]:57257 "EHLO comal.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754269Ab3EaKME (ORCPT ); Fri, 31 May 2013 06:12:04 -0400 From: Hebbar Gururaja To: , , , CC: , , , , , , , , Florian Tobias Schandinat , Subject: [PATCH 10/11] video: da8xx-fb: adopt pinctrl support Date: Fri, 31 May 2013 15:43:10 +0530 Message-ID: <1369995191-20855-11-git-send-email-gururaja.hebbar@ti.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1369995191-20855-1-git-send-email-gururaja.hebbar@ti.com> References: <1369995191-20855-1-git-send-email-gururaja.hebbar@ti.com> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 4140 Lines: 124 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