From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Tue, 2 Jan 2001 12:23:30 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Tue, 2 Jan 2001 12:23:21 -0500 Received: from hybrid-024-221-152-185.az.sprintbbd.net ([24.221.152.185]:42741 "EHLO opus.bloom.county") by vger.kernel.org with ESMTP id ; Tue, 2 Jan 2001 12:23:10 -0500 Date: Tue, 2 Jan 2001 09:51:33 -0700 From: Tom Rini To: Jeff Garzik Cc: linux-fbdev@vuser.vu.union.edu, linux-kernel@vger.kernel.org Subject: [PATCH] clgenfb on PPC Message-ID: <20010102095133.B26653@opus.bloom.county> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="lrZ03NoBR/3+SXJZ" Content-Disposition: inline User-Agent: Mutt/1.3.12i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org --lrZ03NoBR/3+SXJZ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hey all. While going through the 2.4 tree and removing dead CONFIG_xxx's for PPC stuff, I noticed clgenfb still had CONFIG_PREP stuff (which may have partily explained why it no longer worked here). I've attached a patch, that with another patch to fix some PCI issues on certain machines, gives me a working (so far, can't test heavily yet tho) framebuffer on my powerstack. Comments? Also, rivafb needs something similar to this, but since no PReP boxes I know of anyways ship with something rivafb controlls, it's probably easier to just remove the bits inside CONFIG_PREP -- Tom Rini (TR1265) http://gate.crashing.org/~trini/ --lrZ03NoBR/3+SXJZ Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="clgenfb.patch" # This is a BitKeeper generated patch for the following project: # Project Name: # This patch format is intended for GNU patch command version 2.5 or higher. # This patch includes the following deltas: # ChangeSet 1.393.1.12 -> 1.393.1.13 # drivers/video/clgenfb.c 1.19 -> 1.20 # # The following is the BitKeeper ChangeSet Log # -------------------------------------------- # 00/12/27 trini@entropy.crashing.org 1.393.1.13 # Fix up clgenfb. # -------------------------------------------- # diff -Nru a/drivers/video/clgenfb.c b/drivers/video/clgenfb.c --- a/drivers/video/clgenfb.c Tue Jan 2 09:42:09 2001 +++ b/drivers/video/clgenfb.c Tue Jan 2 09:42:09 2001 @@ -56,6 +56,12 @@ #ifdef CONFIG_AMIGA #include #endif +#ifdef CONFIG_ALL_PPC +#include +#define isPReP (_machine == _MACH_prep) +#else +#define isPReP 0 +#endif #include