From patchwork Tue May 24 08:55:31 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jingoo Han X-Patchwork-Id: 811232 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p4O90GXV014139 for ; Tue, 24 May 2011 09:00:16 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755163Ab1EXI77 (ORCPT ); Tue, 24 May 2011 04:59:59 -0400 Received: from ganesha.gnumonks.org ([213.95.27.120]:45318 "EHLO ganesha.gnumonks.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755147Ab1EXI75 (ORCPT ); Tue, 24 May 2011 04:59:57 -0400 Received: from uucp by ganesha.gnumonks.org with local-bsmtp (Exim 4.72) (envelope-from ) id 1QOnSz-00076R-Vr; Tue, 24 May 2011 10:59:53 +0200 Received: from [12.23.102.184] (helo=starstone.dsn.sec.samsung.com) by jackpot.kr.gnumonks.org with esmtp (Exim 4.69) (envelope-from ) id 1QOmVf-0004ay-PV; Tue, 24 May 2011 16:58:35 +0900 From: Jingoo Han To: Paul Mundt Cc: linux-fbdev@vger.kernel.org, Ben Dooks , Jingoo Han Subject: [PATCH] [resend] video: s3c-fb: add gpio setup function to resume function Date: Tue, 24 May 2011 17:55:31 +0900 Message-Id: <1306227331-22713-1-git-send-email-jg1.han@samsung.com> X-Mailer: git-send-email 1.7.1 Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Tue, 24 May 2011 09:00:16 +0000 (UTC) This patch adds gpio setup function to resume function to ensure gpio used by FIMD IP and LCD panel during a resume. Signed-off-by: Jingoo Han --- drivers/video/s3c-fb.c | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/video/s3c-fb.c b/drivers/video/s3c-fb.c index 6b7c5a8..2bd86a9 100644 --- a/drivers/video/s3c-fb.c +++ b/drivers/video/s3c-fb.c @@ -1526,7 +1526,8 @@ static int s3c_fb_resume(struct device *dev) clk_enable(sfb->bus_clk); - /* setup registers */ + /* setup gpio and output polarity controls */ + pd->setup_gpio(); writel(pd->vidcon1, sfb->regs + VIDCON1); /* zero all windows before we do anything */ @@ -1584,7 +1585,8 @@ static int s3c_fb_runtime_resume(struct device *dev) clk_enable(sfb->bus_clk); - /* setup registers */ + /* setup gpio and output polarity controls */ + pd->setup_gpio(); writel(pd->vidcon1, sfb->regs + VIDCON1); /* zero all windows before we do anything */