r2903 - trunk/src/target/kernel/patches

laforge at sita.openmoko.org laforge at sita.openmoko.org
Tue Sep 4 15:12:45 CEST 2007


Author: laforge
Date: 2007-09-04 15:12:38 +0200 (Tue, 04 Sep 2007)
New Revision: 2903

Modified:
   trunk/src/target/kernel/patches/smedia-glamo.patch
Log:
* add a missing 'break' statement resulting in FBIOPUT_VSCREENINFO to always fail
* indicate that 24/32bpp will never be supported with glamo3362


Modified: trunk/src/target/kernel/patches/smedia-glamo.patch
===================================================================
--- trunk/src/target/kernel/patches/smedia-glamo.patch	2007-09-04 11:40:51 UTC (rev 2902)
+++ trunk/src/target/kernel/patches/smedia-glamo.patch	2007-09-04 13:12:38 UTC (rev 2903)
@@ -1810,6 +1810,7 @@
 +			var->blue.length	= 4;
 +			break;
 +		}
++		break;
 +	case 24:
 +	case 32:
 +	default:
@@ -1831,12 +1832,10 @@
 +
 +	switch (var->bits_per_pixel) {
 +	case 16:
-+	case 24:
-+	case 32:
 +		glamo->fb->fix.visual = FB_VISUAL_TRUECOLOR;
 +		break;
 +	default:
-+		printk("Smedia driver doens't [yet?] support <16bpp\n");
++		printk("Smedia driver doens't support != 16bpp\n");
 +		return -EINVAL;
 +	}
 +
@@ -2096,6 +2095,7 @@
 +
 +	glamofb->mach_info = pdev->dev.platform_data;
 +
++	fbinfo->fix.visual = FB_VISUAL_TRUECOLOR;
 +	fbinfo->fix.type = FB_TYPE_PACKED_PIXELS;
 +	fbinfo->fix.type_aux = 0;
 +	fbinfo->fix.xpanstep = 0;





More information about the commitlog mailing list