From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate.crashing.org (gate.crashing.org [63.228.1.57]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTP id AFEE867A3E for ; Thu, 18 May 2006 10:41:18 +1000 (EST) Subject: Re: [PATCH/2.6.17-rc4 1/10] Powerpc: Add general support for mpc7448h pc2 (Taiga) platform From: Benjamin Herrenschmidt To: Kumar Gala In-Reply-To: References: <9FCDBA58F226D911B202000BDBAD46730626D619@zch01exm40.ap.freescale.net> Content-Type: text/plain Date: Thu, 18 May 2006 10:41:07 +1000 Message-Id: <1147912867.10703.42.camel@localhost.localdomain> Mime-Version: 1.0 Cc: Alexandre.Bounine@tundra.com, linuxppc-dev list , Paul Mackerras , Yang Xin-Xin-r48390 List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Wed, 2006-05-17 at 08:45 -0500, Kumar Gala wrote: > > +#ifdef TSI108_ETH > > +hw_info hw_info_table[TSI108_ETH_MAX_PORTS + 1] = { > > + {TSI108_CSR_ADDR_PHYS + TSI108_ETH_OFFSET, > > + TSI108_CSR_ADDR_PHYS + TSI108_ETH_OFFSET, > > + TSI108_PHY0_ADDR, IRQ_TSI108_GIGE0}, > > + > > + {TSI108_CSR_ADDR_PHYS + TSI108_ETH_OFFSET + 0x400, > > + TSI108_CSR_ADDR_PHYS + TSI108_ETH_OFFSET, > > + TSI108_PHY1_ADDR, IRQ_TSI108_GIGE1}, > > + > > + {TBL_END, TBL_END, TBL_END, TBL_END} > > +}; > > +#endif > > This table looks problematic. Look at using something like a > platform device. Bzzzt ... wrong answer :) That's a textbook example of stuff that should be provided via the device-tree.