From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pete Popov Subject: PATCH Date: 21 Feb 2004 16:44:37 -0800 Sender: linux-fbdev-devel-admin@lists.sourceforge.net Message-ID: <1077410677.9577.4.camel@localhost.localdomain> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit 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 (Exim 4.30) id 1AuhpU-0001Hf-MN for linux-fbdev-devel@lists.sourceforge.net; Sat, 21 Feb 2004 16:50:44 -0800 Received: from smtp813.mail.sc5.yahoo.com ([66.163.170.83]) by sc8-sf-mx1.sourceforge.net with smtp (Exim 4.30) id 1Auhii-00033O-Nl for linux-fbdev-devel@lists.sourceforge.net; Sat, 21 Feb 2004 16:43:44 -0800 Errors-To: linux-fbdev-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Id: List-Post: List-Help: List-Subscribe: , List-Archive: Content-Type: text/plain; charset="us-ascii" To: linux-fbdev-devel@lists.sourceforge.net Cc: pete_popov@yahoo.com This is a 2.4 patch for the SMI 501 chip. I don't know if anyone is interested in applying it and/or using it, but I thought I'd send it. The driver has been tested on the AMD Mirage platform. The I2C portion of the driver has been sent to the I2C maintainer. Pete diff -Naur --exclude=CVS linux-2.4-orig/drivers/video/Config.in linux-2.4-dev/drivers/video/Config.in --- linux-2.4-orig/drivers/video/Config.in 2004-01-13 21:51:28.000000000 -0800 +++ linux-2.4-dev/drivers/video/Config.in 2004-02-21 16:19:24.000000000 -0800 @@ -159,6 +159,7 @@ bool ' SIS 300 series support' CONFIG_FB_SIS_300 bool ' SIS 315/330 series support' CONFIG_FB_SIS_315 fi + bool ' SiliconMotion 501 Driver' CONFIG_FB_SMI501 tristate ' NeoMagic display support (EXPERIMENTAL)' CONFIG_FB_NEOMAGIC tristate ' 3Dfx Banshee/Voodoo3 display support (EXPERIMENTAL)' CONFIG_FB_3DFX tristate ' 3Dfx Voodoo Graphics (sst1) support (EXPERIMENTAL)' CONFIG_FB_VOODOO1 diff -Naur --exclude=CVS linux-2.4-orig/drivers/video/fbmem.c linux-2.4-dev/drivers/video/fbmem.c --- linux-2.4-orig/drivers/video/fbmem.c 2004-01-13 21:51:28.000000000 -0800 +++ linux-2.4-dev/drivers/video/fbmem.c 2004-02-21 16:19:24.000000000 -0800 @@ -145,6 +145,8 @@ extern int sstfb_setup(char*); extern int it8181fb_init(void); extern int it8181fb_setup(char*); +extern int smi501fb_init(void); +extern int smi501fb_setup(char*); static struct { const char *name; @@ -254,6 +256,9 @@ #ifdef CONFIG_FB_VESA { "vesa", vesafb_init, vesafb_setup }, #endif +#ifdef CONFIG_FB_SMI501 + { "smi501fb", smi501fb_init, smi501fb_setup }, +#endif /* * Chipset specific drivers that don't use resource management (yet) diff -Naur --exclude=CVS linux-2.4-orig/drivers/video/Makefile linux-2.4-dev/drivers/video/Makefile --- linux-2.4-orig/drivers/video/Makefile 2004-01-13 21:51:28.000000000 -0800 +++ linux-2.4-dev/drivers/video/Makefile 2004-02-21 16:19:24.000000000 -0800 @@ -88,6 +88,7 @@ obj-$(CONFIG_FB_TX3912) += tx3912fb.o obj-$(CONFIG_FB_AU1100) += au1100fb.o fbgen.o obj-$(CONFIG_FB_IT8181) += it8181fb.o fbgen.o +obj-$(CONFIG_FB_SMI501) += smi501fb.o fbgen.o subdir-$(CONFIG_STI_CONSOLE) += sti ifeq ($(CONFIG_STI_CONSOLE),y) diff -Naur --exclude=CVS linux-2.4-orig/drivers/video/smi501fb.c linux-2.4-dev/drivers/video/smi501fb.c --- linux-2.4-orig/drivers/video/smi501fb.c 1969-12-31 16:00:00.000000000 -0800 +++ linux-2.4-dev/drivers/video/smi501fb.c 2004-02-21 16:29:07.000000000 -0800 @@ -0,0 +1,801 @@ +/*************************************************************************** + smifb.c - Silicon Motion, Inc. LynxEM+ frame buffer device + ------------------- + begin : Thu Aug 9 2001 + copyright : (C) 2001 by Szu-Tao Huang + email : johuang@siliconmotion.com + + Updated to SM501 by Eric.Devolder@amd.com and dan@embeddededge.com + for the AMD Mirage Portable Tablet. 20 Oct 2003 + ***************************************************************************/ + +/*************************************************************************** + * * + * This program is free software; you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation; either version 2 of the License, or * + * (at your option) any later version. * + * * + ***************************************************************************/ + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include +#include +#include +#include +#include + +#include