Skip to content

Commit

Permalink
[PATCH] au1100fb: info->var.rotate fix
Browse files Browse the repository at this point in the history
Fix "info->var.rotate" data settings.

This info should be deduced directly from "fbdev->panel->control_base"
defined into au1100fb.h.

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>
  • Loading branch information
Rodolfo Giometti authored and Linus Torvalds committed Aug 6, 2006
1 parent 78944e5 commit fd2d543
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions drivers/video/au1100fb.c
Original file line number Diff line number Diff line change
Expand Up @@ -164,10 +164,11 @@ int au1100fb_setmode(struct au1100fb_device *fbdev)
}

info->screen_size = info->fix.line_length * info->var.yres_virtual;
info->var.rotate = ((fbdev->panel->control_base&LCD_CONTROL_SM_MASK) \
>> LCD_CONTROL_SM_BIT) * 90;

/* Determine BPP mode and format */
fbdev->regs->lcd_control = fbdev->panel->control_base |
((info->var.rotate/90) << LCD_CONTROL_SM_BIT);
fbdev->regs->lcd_control = fbdev->panel->control_base;

fbdev->regs->lcd_intenable = 0;
fbdev->regs->lcd_intstatus = 0;
Expand Down

0 comments on commit fd2d543

Please sign in to comment.