aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video
diff options
context:
space:
mode:
authorBen Dooks <ben-linux@fluff.org>2007-10-16 04:28:39 -0400
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-10-16 12:43:14 -0400
commiteb78f9b3fa8532057d2a45acbe415b27ece6341b (patch)
tree0ad087338d6b29887533a20e97770a56ea4308ef /drivers/video
parentf22e521f2992031fdedb661f2a647cafd2e45fa1 (diff)
sm501fb: Ensure panel interface is not tristated when setup
When we setup the panel interface whilst configuring the framebuffer, we should ensure the panel interface is not in tristate, in case the bootloader or previous setup has not enabled it. Signed-off-by: Ben Dooks <ben-linux@fluff.org> Signed-off-by: Antonino Daplas <adaplas@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/video')
-rw-r--r--drivers/video/sm501fb.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/video/sm501fb.c b/drivers/video/sm501fb.c
index d97edd7a6e41..1be95a68d696 100644
--- a/drivers/video/sm501fb.c
+++ b/drivers/video/sm501fb.c
@@ -777,6 +777,11 @@ static int sm501fb_set_par_pnl(struct fb_info *info)
777 writel(control, fbi->regs + SM501_DC_PANEL_CONTROL); 777 writel(control, fbi->regs + SM501_DC_PANEL_CONTROL);
778 sm501fb_sync_regs(fbi); 778 sm501fb_sync_regs(fbi);
779 779
780 /* ensure the panel interface is not tristated at this point */
781
782 sm501_modify_reg(fbi->dev->parent, SM501_SYSTEM_CONTROL,
783 0, SM501_SYSCTRL_PANEL_TRISTATE);
784
780 /* power the panel up */ 785 /* power the panel up */
781 sm501fb_panel_power(fbi, 1); 786 sm501fb_panel_power(fbi, 1);
782 return 0; 787 return 0;