From: Robert Schwebel Date: Mon, 7 May 2007 17:22:57 +0200 Subject: [U-Boot-Users] PXA27x USB device In-Reply-To: <87ejlssr7a.fsf@denx.de> References: <20070502140500.GZ11009@enneenne.com> <200705041347.13816.sr@denx.de> <871whsu9tu.fsf@denx.de> <200705071422.38411.sr@denx.de> <87ejlssr7a.fsf@denx.de> Message-ID: <20070507152257.GA12319@pengutronix.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Mon, May 07, 2007 at 03:23:21PM +0200, Markus Klotzb?cher wrote: > > > This is why I favor the old way of storing cpu dependant drivers in > > > the appropriate cpu directory. This makes the responsibility clear > > > and allows to cleanly seperate arch and generic code. Isn't this > > > similar to linux where cpu dependant drivers are found in > > > "arch/cpu/"? > > > > No, quite the contrary. In Linux you will find even the cpu-specific > > drivers (like ethernet, uart, i2c driver etc) in the "drivers" > > directory. Only the board- and cpu-specific setup code and some > > additional code like interrupt controller implementation etc is > > normally found in the Linux "arch" directories. > > There are complete drivers in arch/ppc/8260_io or arch/ppc/8xx_io for > example, but I agree you're right in general. Putting drivers into arch/cpu/* is evil, because manufacturers tend to reusing IP cores in other CPUs. So IMHO putting them into drivers/ is the right way to do it. Robert -- Dipl.-Ing. Robert Schwebel | http://www.pengutronix.de Pengutronix - Linux Solutions for Science and Industry Handelsregister: Amtsgericht Hildesheim, HRA 2686 Hannoversche Str. 2, 31134 Hildesheim, Germany Phone: +49-5121-206917-0 | Fax: +49-5121-206917-9