Skip to contentSkip to conversation

Framebuffer driver for Geode GX

PATCH In review David Vrabel 2 participants 4 messages Jan 31, 2006 – Feb 1, 2006 Framebuffer layer

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Framebuffer driver for Geode GX

A framebuffer driver for the display controller in AMD Geode GX processors (Geode GX533, Geode GX500 etc.). Tested at 640x480, 800x600, 1024x768 and 1280x1024 at 8, 16, and 24 bpp with both CRT and TFT. No accelerated features currently implemented and compression remains disabled.

This driver requires that the BIOS (or the SoftVG/Firmbase code in the BIOS) has created an appropriate virtual PCI header.

Signature · 4 lines
David Vrabel, Design Engineer

Arcom, Clifton Road           Tel: +44 (0)1223 411200 ext. 3233
Cambridge CB1 7EA, UK         Web: http://www.arcom.com/
drivers/video/geode/Kconfig +15 -0
Index: linux-2.6-working/drivers/video/geode/Kconfig
===================================================================
@@ -8,6 +8,21 @@
 	  Say 'Y' here to allow you to select framebuffer drivers for
 	  the AMD Geode family of processors.
 
+config FB_GEODE_GX
+	tristate "AMD Geode GX framebuffer support (EXPERIMENTAL)"
+	depends on FB_GEODE && EXPERIMENTAL
+	select FB_CFB_FILLRECT
+	select FB_CFB_COPYAREA
+	select FB_CFB_IMAGEBLIT
+	---help---
+	  Framebuffer driver for the display controller integrated into the
+	  AMD Geode GX processors.
+
+	  To compile this driver as a module, choose M here: the module will be
+	  called gxfb.
+
+	  If unsure, say N.
+
 config FB_GEODE_GX1
 	tristate "AMD Geode GX1 framebuffer support (EXPERIMENTAL)"
 	depends on FB_GEODE && EXPERIMENTAL
drivers/video/geode/Makefile +3 -1
Index: linux-2.6-working/drivers/video/geode/Makefile
===================================================================
@@ -1,5 +1,7 @@
 # Makefile for the Geode family framebuffer drivers
 
 obj-$(CONFIG_FB_GEODE_GX1) += gx1fb.o
+obj-$(CONFIG_FB_GEODE_GX)  += gxfb.o
 
-gx1fb-objs   		:= gx1fb_core.o display_gx1.o video_cs5530.o
+gx1fb-objs := gx1fb_core.o display_gx1.o video_cs5530.o
+gxfb-objs  := gxfb_core.o display_gx.o video_gx.o
drivers/video/geode/display_gx.c new file +156 -0

156 lines not on this page · raw message

drivers/video/geode/display_gx.h new file +96 -0

96 lines not on this page · raw message

drivers/video/geode/gxfb_core.c new file +423 -0

423 lines not on this page · raw message

drivers/video/geode/video_gx.c new file +217 -0

217 lines not on this page · raw message

drivers/video/geode/video_gx.h new file +47 -0

47 lines not on this page · raw message

#1 lore raw

T24gMS8zMS8wNiwgRGF2aWQgVnJhYmVsIDxkdnJhYmVsQGFyY29tLmNvbT4gd3JvdGU6Cj4gQSBm cmFtZWJ1ZmZlciBkcml2ZXIgZm9yIHRoZSBkaXNwbGF5IGNvbnRyb2xsZXIgaW4gQU1EIEdlb2Rl IEdYCj4gcHJvY2Vzc29ycyAoR2VvZGUgR1g1MzMsIEdlb2RlIEdYNTAwIGV0Yy4pLiAgVGVzdGVk IGF0IDY0MHg0ODAsIDgwMHg2MDAsCj4gMTAyNHg3NjggYW5kIDEyODB4MTAyNCBhdCA4LCAxNiwg YW5kIDI0IGJwcCB3aXRoIGJvdGggQ1JUIGFuZCBURlQuICBObwo+IGFjY2VsZXJhdGVkIGZlYXR1 cmVzIGN1cnJlbnRseSBpbXBsZW1lbnRlZCBhbmQgY29tcHJlc3Npb24gcmVtYWlucyBkaXNhYmxl ZC4KPgo+IFRoaXMgZHJpdmVyIHJlcXVpcmVzIHRoYXQgdGhlIEJJT1MgKG9yIHRoZSBTb2Z0Vkcv RmlybWJhc2UgY29kZSBpbiB0aGUKPiBCSU9TKSBoYXMgY3JlYXRlZCBhbiBhcHByb3ByaWF0ZSB2 aXJ0dWFsIFBDSSBoZWFkZXIuCj4KPiBTaWduZWQtb2ZmLWJ5OiBEYXZpZCBWcmFiZWwgPGR2cmFi ZWxAYXJjb20uY29tPgo+IC0tCj4gRGF2aWQgVnJhYmVsLCBEZXNpZ24gRW5naW5lZXIKCkFzaWRl IGZyb20gYmVpbmcgbW9yZSByZWNpZW50IHdoYXRzIHRoZSBkaWZmZXJlbmNlIGJldHdlZW4geW91 ciBkcml2ZXIKYW5kIHRoZSAyLjYuMTEgZHJpdmVyIHBhdGNoIGZyb20gQU1EPwoKLS0KUmljaGFy ZCBBLiBTbWl0aAo=

-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642

#2 lore raw
Quoted 7 lines · Richard Smith
Quoted 5 lines · David Vrabel

A framebuffer driver for the display controller in AMD Geode GX processors (Geode GX533, Geode GX500 etc.). Tested at 640x480, 800x600, 1024x768 and 1280x1024 at 8, 16, and 24 bpp with both CRT and TFT. No accelerated features currently implemented and compression remains disabled.

Quoted 5 lines
Quoted 2 lines

This driver requires that the BIOS (or the SoftVG/Firmbase code in the BIOS) has created an appropriate virtual PCI header.

Aside from being more recient whats the difference between your driver and the 2.6.11 driver patch from AMD?

There's only a driver for the Geode LX (or more correctly, our AMD FAE couldn't point me to a driver for the Geode GX).

AMD's drivers tend to use their OS independant HAL (c.f. cimarron for the Geode LX driver and their use of the Durango API in their old 2.4 drivers for the Geode GX). As such, they're not suitable for inclusion into the kernel anyway.

David Vrabel

Signature · 11 lines
David Vrabel, Design Engineer

Arcom, Clifton Road           Tel: +44 (0)1223 411200 ext. 3233
Cambridge CB1 7EA, UK         Web: http://www.arcom.com/


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
#3 lore raw

PiA+IEFzaWRlIGZyb20gYmVpbmcgbW9yZSByZWNpZW50IHdoYXRzIHRoZSBkaWZmZXJlbmNlIGJl dHdlZW4geW91ciBkcml2ZXIKPiA+IGFuZCB0aGUgMi42LjExIGRyaXZlciBwYXRjaC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-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642