* [RESENT] [PATCH] pm2fb: memclock setting corrections
@ 2007-04-30 12:16 Krzysztof Helt
0 siblings, 0 replies; only message in thread
From: Krzysztof Helt @ 2007-04-30 12:16 UTC (permalink / raw)
To: linux-fbdev-devel
[-- Attachment #1: Type: text/plain, Size: 882 bytes --]
From: Krzysztof Helt <krzysztof.h1@wp.pl>
This patch disables a memory clock setting if a board has been
initialized by BIOS. This allows using the memory clock set by
manufacturer of the board.
This patch also sets default clock for 3dlabs Permedia 2V
reference board's clock to 75MHz (BIOS setting for EONtronic
Permedia 2Vboard), because the default 83MHz can be too high.
Signed-off-by: Krzysztof Helt <krzysztof.h1@wp.pl>
---
This patch requires the patch
pm2fb-3dlabs-permedia-2v-reference-board-added.patch
from mm tree to be applied first.
----------------------------------------------------
Poznaj nowa milość! HOLIDAY - ciepły i pełen humoru
film twórców "Czego pragną kobiety". Cameron Diaz, Kate Winslet,
Jude Law w romantycznej komedii HOLIDAY. Już na DVD!
http://klik.wp.pl/?adr=http%3A%2F%2Fadv.reklama.wp.pl%2Fas%2Fholiday2.html&sid=1120
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: pm2fb-clock-corrections.diff --]
[-- Type: text/x-patch; name="pm2fb-clock-corrections.diff", Size: 1020 bytes --]
diff -urp linux-2.6.21.orig/drivers/video/pm2fb.c linux-2.6.21.old/drivers/video/pm2fb.c
--- linux-2.6.21.orig/drivers/video/pm2fb.c 2007-04-26 22:59:21.697777668 +0200
+++ linux-2.6.21.old/drivers/video/pm2fb.c 2007-04-22 19:42:29.715214265 +0200
@@ -1139,10 +1144,10 @@ static int __devinit pm2fb_probe(struct
default_par->mem_control, default_par->boot_address,
default_par->mem_config);
- default_par->memclock = CVPPC_MEMCLOCK;
if(default_par->mem_control == 0 &&
default_par->boot_address == 0x31 &&
default_par->mem_config == 0x259fffff) {
+ default_par->memclock = CVPPC_MEMCLOCK;
default_par->mem_control=0;
default_par->boot_address=0x20;
default_par->mem_config=0xe6002021;
@@ -1162,7 +1167,7 @@ static int __devinit pm2fb_probe(struct
DPRINTK("We have not been initialized by VGA BIOS "
"and are running on an 3dlabs reference board\n");
DPRINTK("Initializing card timings manually...\n");
- default_par->memclock=70000;
+ default_par->memclock=74894;
}
}
[-- Attachment #3: Type: text/plain, Size: 286 bytes --]
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
[-- 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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-04-30 12:16 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-04-30 12:16 [RESENT] [PATCH] pm2fb: memclock setting corrections Krzysztof Helt
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).