From: Rodolfo Giometti <giometti@linux.it>
To: linux-mips@linux-mips.org
Cc: linux-fbdev-devel@lists.sourceforge.net
Subject: [PATCH] au1100fb.c startup sequence
Date: Wed, 12 Jul 2006 09:02:21 +0200 [thread overview]
Message-ID: <20060712070221.GI5994@gundam.enneenne.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 551 bytes --]
Hello,
here a patch to 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.
The patch also fixes up a wrong indentation issue.
Ciao,
Rodolfo
Signed-off-by: Rodolfo Giometti <giometti@linux.it>
--
GNU/Linux Solutions e-mail: giometti@enneenne.com
Linux Device Driver giometti@gnudd.com
Embedded Systems giometti@linux.it
UNIX programming phone: +39 349 2432127
[-- Attachment #2: patch-au1100fb-startup-fix --]
[-- Type: text/plain, Size: 1242 bytes --]
diff --git a/drivers/video/au1100fb.c b/drivers/video/au1100fb.c
index 1b9ad17..f9fcc65 100644
--- a/drivers/video/au1100fb.c
+++ b/drivers/video/au1100fb.c
@@ -167,7 +167,7 @@ int au1100fb_setmode(struct au1100fb_dev
info->fix.visual = FB_VISUAL_TRUECOLOR;
info->fix.line_length = info->var.xres_virtual << 1; /* depth=16 */
- }
+ }
} else {
/* mono */
info->fix.visual = FB_VISUAL_MONO10;
@@ -180,16 +180,11 @@ int au1100fb_setmode(struct au1100fb_dev
/* Determine BPP mode and format */
fbdev->regs->lcd_control = fbdev->panel->control_base;
-
- fbdev->regs->lcd_intenable = 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_intenable = 0;
+ fbdev->regs->lcd_intstatus = 0;
fbdev->regs->lcd_dmaaddr0 = LCD_DMA_SA_N(fbdev->fb_phys);
if (panel_is_dual(fbdev->panel)) {
@@ -217,7 +212,8 @@ int au1100fb_setmode(struct au1100fb_dev
fbdev->regs->lcd_pwmhi = 0;
/* Resume controller */
- au1100fb_fb_blank(VESA_NO_BLANKING, &fbdev->info);
+ mdelay(10);
+ au1100fb_fb_blank(VESA_NO_BLANKING, info);
return 0;
}
[-- Attachment #3: Type: text/plain, Size: 375 bytes --]
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
[-- Attachment #4: Type: text/plain, Size: 182 bytes --]
_______________________________________________
Linux-fbdev-devel mailing list
Linux-fbdev-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-fbdev-devel
reply other threads:[~2006-07-12 13:28 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20060712070221.GI5994@gundam.enneenne.com \
--to=giometti@linux.it \
--cc=linux-fbdev-devel@lists.sourceforge.net \
--cc=linux-mips@linux-mips.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).