Commit fd2d5430 authored by Rodolfo Giometti's avatar Rodolfo Giometti Committed by Linus Torvalds

[PATCH] au1100fb: info->var.rotate fix

Fix "info->var.rotate" data settings.

This info should be deduced directly from "fbdev->panel->control_base"
defined into au1100fb.h.
Signed-off-by: default avatarRodolfo Giometti <giometti@linux.it>
Signed-off-by: default avatarAntonino Daplas <adaplas@pol.net>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 78944e54
...@@ -164,10 +164,11 @@ int au1100fb_setmode(struct au1100fb_device *fbdev) ...@@ -164,10 +164,11 @@ int au1100fb_setmode(struct au1100fb_device *fbdev)
} }
info->screen_size = info->fix.line_length * info->var.yres_virtual; 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 */ /* Determine BPP mode and format */
fbdev->regs->lcd_control = fbdev->panel->control_base | fbdev->regs->lcd_control = fbdev->panel->control_base;
((info->var.rotate/90) << LCD_CONTROL_SM_BIT);
fbdev->regs->lcd_intenable = 0; fbdev->regs->lcd_intenable = 0;
fbdev->regs->lcd_intstatus = 0; fbdev->regs->lcd_intstatus = 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment