From eb78f9b3fa8532057d2a45acbe415b27ece6341b Mon Sep 17 00:00:00 2001 From: Ben Dooks Date: Tue, 16 Oct 2007 01:28:39 -0700 Subject: 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 Signed-off-by: Antonino Daplas Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- drivers/video/sm501fb.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'drivers/video/sm501fb.c') diff --git a/drivers/video/sm501fb.c b/drivers/video/sm501fb.c index d97edd7a6e4..1be95a68d69 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) writel(control, fbi->regs + SM501_DC_PANEL_CONTROL); sm501fb_sync_regs(fbi); + /* ensure the panel interface is not tristated at this point */ + + sm501_modify_reg(fbi->dev->parent, SM501_SYSTEM_CONTROL, + 0, SM501_SYSCTRL_PANEL_TRISTATE); + /* power the panel up */ sm501fb_panel_power(fbi, 1); return 0; -- cgit v1.2.3