[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Question about framebuffer...



> > Yes it does, I've posted a patch to fix 2.6.0-test7 rivafb here a while
> > ago.
> Could you post a link or repost it please. The question turns up far
> again and again and having the patch more than once in the archive won't
> hurt.

I have no link - it should be in the archive around Oct. 15. Anyway, here
goes again  ...

	Michael
--- linux-2.6.0-test6-ben/drivers/video/riva/nv_driver.c.org	2003-10-08 11:59:36.000000000 +0200
+++ linux-2.6.0-test6-ben/drivers/video/riva/nv_driver.c	2003-10-09 13:43:19.000000000 +0200
@@ -337,6 +337,11 @@
 	case 0x01F0:
 	case 0x0250:
 	case 0x0280:
+	case 0x0300:
+	case 0x0310:
+	case 0x0320:
+	case 0x0330:
+	case 0x0340:
 		riva_is_second(par);
 		break;
 	default:
--- linux-2.6.0-test6-ben/drivers/video/riva/riva_hw.c.org	2003-10-08 11:59:36.000000000 +0200
+++ linux-2.6.0-test6-ben/drivers/video/riva/riva_hw.c	2003-10-09 13:28:50.000000000 +0200
@@ -2061,7 +2061,8 @@
 
 #ifdef __BIG_ENDIAN
     /* turn on big endian register access */
-    chip->PMC[0x00000004/4] = 0x01000001;
+    if(!(chip->PMC[0x00000004/4] & 0x01000001))
+        chip->PMC[0x00000004/4] = 0x01000001;
 #endif
 
     /*
@@ -2122,6 +2123,11 @@
     case 0x01F0:
     case 0x0250:
     case 0x0280:
+    case 0x0300:
+    case 0x0310:
+    case 0x0320:
+    case 0x0330:
+    case 0x0340:
        if(chip->PEXTDEV[0x0000/4] & (1 << 22))
            chip->CrystalFreqKHz = 27000;
        break;
@@ -2153,6 +2159,11 @@
     case 0x01F0:
     case 0x0250:
     case 0x0280:
+    case 0x0300:
+    case 0x0310:
+    case 0x0320:
+    case 0x0330:
+    case 0x0340:
         chip->twoHeads = TRUE;
         break;
     default:

Reply to: