video: s3c-fb: add gpio setup function to resume function
authorJingoo Han <jg1.han@samsung.com>
Tue, 24 May 2011 08:55:31 +0000 (08:55 +0000)
committerPaul Mundt <lethal@linux-sh.org>
Tue, 24 May 2011 09:04:31 +0000 (18:04 +0900)
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 <jg1.han@samsung.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
drivers/video/s3c-fb.c

index 6b7c5a8aea8aa83d87ab9251a8a278396e30d8a2..2bd86a9fa3a05f904845d3cc6c7739cfc2a8b695 100644 (file)
@@ -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 */