From mboxrd@z Thu Jan 1 00:00:00 1970 From: Benjamin Herrenschmidt Subject: New radeonfb, mostly untested Date: Sun, 07 Sep 2003 18:37:20 +0200 Sender: linux-fbdev-devel-admin@lists.sourceforge.net Message-ID: <1062952639.655.6.camel@gaston> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-m+GI2G6Nn/nYjyiXbFnO" Return-path: Received: from sc8-sf-mx1-b.sourceforge.net ([10.3.1.11] helo=sc8-sf-mx1.sourceforge.net) by sc8-sf-list1.sourceforge.net with esmtp (Cipher TLSv1:DES-CBC3-SHA:168) (Exim 3.31-VA-mm2 #1 (Debian)) id 19w2ZB-0006Os-00 for ; Sun, 07 Sep 2003 09:39:09 -0700 Received: from pentafluge.infradead.org ([213.86.99.235]) by sc8-sf-mx1.sourceforge.net with esmtp (TLSv1:AES256-SHA:256) (Exim 4.22) id 19w2Yv-0006tb-Un for linux-fbdev-devel@lists.sourceforge.net; Sun, 07 Sep 2003 09:38:54 -0700 Errors-To: linux-fbdev-devel-admin@lists.sourceforge.net List-Help: List-Post: List-Subscribe: , List-Id: List-Unsubscribe: , List-Archive: To: Jon Smirl , kronos Cc: Linux Fbdev development list --=-m+GI2G6Nn/nYjyiXbFnO Content-Type: text/plain Content-Transfer-Encoding: 7bit Hi ! Ok, enough for today, my head hurts, it builds, it detects my PowerBook's internal panel properly, I didn't test anything else yet nor x86, let me know what you think... No dual head nor mirror yet, though I try hard to detect properly both monitors. Ben. --=-m+GI2G6Nn/nYjyiXbFnO Content-Disposition: attachment; filename=patch1-radeonfb.diff Content-Type: text/x-patch; name=patch1-radeonfb.diff; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit diff -urN linux-2.5-mesa/drivers/video/Kconfig linuxppc-2.5-benh/drivers/video/Kconfig --- linux-2.5-mesa/drivers/video/Kconfig 2003-09-07 18:25:20.000000000 +0200 +++ linuxppc-2.5-benh/drivers/video/Kconfig 2003-09-07 15:07:45.000000000 +0200 @@ -659,8 +659,18 @@ There is no need for enabling 'Matrox multihead support' if you have only one Matrox card in the box. +config FB_RADEON_OLD + tristate "ATI Radeon display support (Old driver)" + depends on FB && PCI + help + Choose this option if you want to use an ATI Radeon graphics card as + a framebuffer device. There are both PCI and AGP versions. You + don't need to choose this to run the Radeon in plain VGA mode. + There is a product page at + . + config FB_RADEON - tristate "ATI Radeon display support" + tristate "ATI Radeon display support (New driver)" depends on FB && PCI help Choose this option if you want to use an ATI Radeon graphics card as @@ -673,7 +683,7 @@ If you say M here then "I2C support" and "I2C bit-banging support" can be build either as modules or built-in. - + There is a product page at . diff -urN linux-2.5-mesa/drivers/video/Makefile linuxppc-2.5-benh/drivers/video/Makefile --- linux-2.5-mesa/drivers/video/Makefile 2003-09-07 18:25:20.000000000 +0200 +++ linuxppc-2.5-benh/drivers/video/Makefile 2003-09-07 15:09:05.000000000 +0200 @@ -21,7 +21,7 @@ obj-$(CONFIG_FB_Q40) += q40fb.o cfbfillrect.o cfbcopyarea.o cfbimgblt.o obj-$(CONFIG_FB_ATARI) += atafb.o obj-$(CONFIG_FB_68328) += 68328fb.o -obj-$(CONFIG_FB_RADEON) += radeonfb.o cfbfillrect.o cfbcopyarea.o cfbimgblt.o +obj-$(CONFIG_FB_RADEON_OLD) += radeonfb.o cfbfillrect.o cfbcopyarea.o cfbimgblt.o obj-$(CONFIG_FB_NEOMAGIC) += neofb.o cfbfillrect.o cfbcopyarea.o cfbimgblt.o obj-$(CONFIG_FB_IGA) += igafb.o cfbfillrect.o cfbcopyarea.o cfbimgblt.o obj-$(CONFIG_FB_CONTROL) += controlfb.o macmodes.o cfbfillrect.o cfbcopyarea.o cfbimgblt.o @@ -54,12 +54,14 @@ obj-$(CONFIG_FB_PMAGB_B) += pmagb-b-fb.o cfbfillrect.o cfbcopyarea.o cfbimgblt.o obj-$(CONFIG_FB_MAXINE) += maxinefb.o cfbfillrect.o cfbcopyarea.o cfbimgblt.o obj-$(CONFIG_FB_TX3912) += tx3912fb.o cfbfillrect.o cfbcopyarea.o cfbimgblt.o +obj-$(CONFIG_FB_IBMLCDC) += ibmlcdfb.o obj-$(CONFIG_FB_MATROX) += matrox/ cfbfillrect.o cfbcopyarea.o cfbimgblt.o obj-$(CONFIG_FB_RIVA) += riva/ cfbimgblt.o vgastate.o obj-$(CONFIG_FB_SIS) += sis/ cfbcopyarea.o cfbfillrect.o cfbimgblt.o obj-$(CONFIG_FB_ATY) += aty/ cfbcopyarea.o cfbfillrect.o cfbimgblt.o obj-$(CONFIG_FB_ATY128) += aty/ cfbcopyarea.o cfbfillrect.o cfbimgblt.o +obj-$(CONFIG_FB_RADEON) += aty/ cfbcopyarea.o cfbfillrect.o cfbimgblt.o obj-$(CONFIG_FB_I810) += i810/ cfbfillrect.o cfbcopyarea.o \ cfbimgblt.o vgastate.o diff -urN linux-2.5-mesa/drivers/video/aty/radeon_base.c linuxppc-2.5-benh/drivers/video/aty/radeon_base.c --- linux-2.5-mesa/drivers/video/aty/radeon_base.c Thu Jan 01 01:00:00 1970 +++ linuxppc-2.5-benh/drivers/video/aty/radeon_base.c Sun Sep 07 18:02:53 2003 @@ -0,0 +1,2168 @@ +/* + * drivers/video/radeonfb.c + * framebuffer driver for ATI Radeon chipset video boards + * + * Copyright 2003 Ben. Herrenschmidt + * Copyright 2000 Ani Joshi + * + * i2c bits from Luca Tettamanti + * + * Special thanks to ATI DevRel team for their hardware donations. + * + * ...Insert GPL boilerplate here... + * + * TODO: - Bring a couple of cleanups from 2.4 to the mode setting code, + * - Split CRT vs. FP register calc/setting + * - Add CRTC2 support for mirror at least, dual head then + * - Add back some accel + * + */ + + +#define RADEON_VERSION "0.2.0" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include +#include + +#if CONFIG_PPC_OF + +#include +#include +#include "../macmodes.h" + +#ifdef CONFIG_PMAC_BACKLIGHT +#include +#endif + +#ifdef CONFIG_BOOTX_TEXT +#include +#endif + +#endif /* CONFIG_PPC_OF */ + +#ifdef CONFIG_MTRR +#include +#endif + +#include