au1100fb fb_blank
Subsystems (2)
PATCH 1/1 au1100fb fb_blank
Hello,
since some boards need to manage GPIOs to turn on and off the LCD and since on shutdwon the driver does:
#if !defined(CONFIG_FRAMEBUFFER_CONSOLE) && defined(CONFIG_LOGO)
au1100fb_fb_blank(VESA_POWERDOWN, &fbdev->info);
#endif
fbdev->regs->lcd_control &= ~LCD_CONTROL_GO;I suggest the attached patch to do the same during boot.
Note that this prevents boards support developers to add specific code before the command:
fbdev->regs->lcd_control |= LCD_CONTROL_GO;
but putting all these stuff into proper function au1100fb_fb_blank().
Please, let me know what do you think about it.
Ciao,
Rodolfo
Signature · 4 lines
GNU/Linux Solutions e-mail: [email protected] Linux Device Driver [email protected] Embedded Systems [email protected] UNIX programming phone: +39 349 2432127
drivers/video/au1100fb.c +3 -1
@@ -110,6 +114,8 @@ static struct fb_var_screeninfo au1100fbstatic struct au1100fb_drv_info drv_info; +int au1100fb_fb_blank (int blank_mode,struct fb_info *fbi); +/* * Set hardware with var settings. This will enable the controller with a specific * mode, normally validated with the fb_check_var method
@@ -205,7 +211,7 @@ int au1100fb_setmode(struct au1100fb_dev fbdev->regs->lcd_pwmhi =0 ;/* Resume controller */ - fbdev->regs->lcd_control |=LCD_CONTROL_GO ; +au1100fb_fb_blank (VESA_NO_BLANKING , &fbdev->info);return 0 ; }