From mboxrd@z Thu Jan 1 00:00:00 1970 From: Markus =?iso-8859-1?Q?Klotzb=FCcher?= Date: Mon, 07 May 2007 15:23:21 +0200 Subject: [U-Boot-Users] PXA27x USB device In-Reply-To: <200705071422.38411.sr@denx.de> (Stefan Roese's message of "Mon, 7 May 2007 14:22:38 +0200") References: <20070502140500.GZ11009@enneenne.com> <200705041347.13816.sr@denx.de> <871whsu9tu.fsf@denx.de> <200705071422.38411.sr@denx.de> Message-ID: <87ejlssr7a.fsf@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Stefan, Stefan Roese writes: > On Monday 07 May 2007, Markus Klotzb?cher wrote: >> > But I see your point. By moving those cpu-specific files into the drivers >> > directory, the architecture custodians need to maintain files distributed >> > all over the drivers directory and not specifically in the cpu/xxx >> > directory. I never thought of this before. >> >> 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. >> What do you think? > > I still think we should move to implementing drivers in the drivers directory, > even if the responsibility for the files is not so easily visible anymore. Ok, if this is what was agreed upon I can live with it. (Don't get me wrong, I don't think this is a big mistake or so, I just fail to see any real benefit beside of beeing more Linux-like) Best regards Markus -- DENX Software Engineering GmbH, HRB 165235 Munich, CEO: Wolfgang Denk Office: Kirchenstr. 5, D-82194 Groebenzell, Germany