au1100fb: info->var.rotate fix
PATCH 2/13 au1100fb: info->var.rotate fix
From: Rodolfo Giometti <[email protected]>
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 <[email protected]>
Signed-off-by Antonino Daplas <[email protected]>
---
drivers/video/au1100fb.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-)
drivers/video/au1100fb.c +3 -2
@@ -164,10 +164,11 @@ int au1100fb_setmode(struct au1100fb_dev } 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 ;
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV