[PATCH] au1100fb: Fix startup sequence
- fix up the start up sequence. This new sequence allow you to correctly enable the LCD controller even if the bootloader has already did it. - fix up a wrong indentation issue. Signed-off-by: Rodolfo Giometti <giometti@linux.it> Signed-off-by: Antonino Daplas <adaplas@pol.net> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
fd2d543003
commit
bb39e41974
1 changed files with 6 additions and 9 deletions
|
@ -169,16 +169,11 @@ int au1100fb_setmode(struct au1100fb_device *fbdev)
|
||||||
|
|
||||||
/* Determine BPP mode and format */
|
/* Determine BPP mode and format */
|
||||||
fbdev->regs->lcd_control = fbdev->panel->control_base;
|
fbdev->regs->lcd_control = fbdev->panel->control_base;
|
||||||
|
fbdev->regs->lcd_horztiming = fbdev->panel->horztiming;
|
||||||
|
fbdev->regs->lcd_verttiming = fbdev->panel->verttiming;
|
||||||
|
fbdev->regs->lcd_clkcontrol = fbdev->panel->clkcontrol_base;
|
||||||
fbdev->regs->lcd_intenable = 0;
|
fbdev->regs->lcd_intenable = 0;
|
||||||
fbdev->regs->lcd_intstatus = 0;
|
fbdev->regs->lcd_intstatus = 0;
|
||||||
|
|
||||||
fbdev->regs->lcd_horztiming = fbdev->panel->horztiming;
|
|
||||||
|
|
||||||
fbdev->regs->lcd_verttiming = fbdev->panel->verttiming;
|
|
||||||
|
|
||||||
fbdev->regs->lcd_clkcontrol = fbdev->panel->clkcontrol_base;
|
|
||||||
|
|
||||||
fbdev->regs->lcd_dmaaddr0 = LCD_DMA_SA_N(fbdev->fb_phys);
|
fbdev->regs->lcd_dmaaddr0 = LCD_DMA_SA_N(fbdev->fb_phys);
|
||||||
|
|
||||||
if (panel_is_dual(fbdev->panel)) {
|
if (panel_is_dual(fbdev->panel)) {
|
||||||
|
@ -207,6 +202,8 @@ int au1100fb_setmode(struct au1100fb_device *fbdev)
|
||||||
|
|
||||||
/* Resume controller */
|
/* Resume controller */
|
||||||
fbdev->regs->lcd_control |= LCD_CONTROL_GO;
|
fbdev->regs->lcd_control |= LCD_CONTROL_GO;
|
||||||
|
mdelay(10);
|
||||||
|
au1100fb_fb_blank(VESA_NO_BLANKING, info);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue