Skip to contentSkip to conversation

cg6 framebuffer no display

PATCH New Adam Kropelin 1 participant 1 message Dec 11, 2004 Framebuffer layer

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cg6 framebuffer no display

Although the CG6 framebuffer is detected and initialized, without this patch all it displays is a blank screen. Tested on an Ultra 1 with a TGX+.

Originally from Bob Breuer for the CG14.

drivers/video/cg6.c +4 -0
@@ -689,6 +689,9 @@
 	all->par.physbase = sdev->reg_addrs[0].phys_addr;
 
 	sbusfb_fill_var(&all->info.var, sdev->prom_node, 8);
+	all->info.var.red.length = 8;
+	all->info.var.green.length = 8;
+	all->info.var.blue.length = 8;
 
 	linebytes = prom_getintdefault(sdev->prom_node, "linebytes",
 				       all->info.var.xres);
@@ -732,6 +735,7 @@
 		return;
 	}
 
+	fb_set_cmap(&all->info.cmap, &all->info);
 	cg6_init_fix(&all->info, linebytes);
 
 	if (register_framebuffer(&all->info) < 0) {