Skip to content

Commit

Permalink
video: s3c-fb: add gpio setup function to resume function
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jingoo Han authored and Paul Mundt committed May 24, 2011
1 parent 8f25c01 commit 6aa9681
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions drivers/video/s3c-fb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down Expand Up @@ -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 */
Expand Down

0 comments on commit 6aa9681

Please sign in to comment.