From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from az33egw01.freescale.net (az33egw01.freescale.net [192.88.158.102]) by ozlabs.org (Postfix) with ESMTP id 5589C67B19 for ; Tue, 12 Apr 2005 01:59:09 +1000 (EST) From: Jon Loeliger To: Tom Rini In-Reply-To: <20050407174936.GR3396@smtp.west.cox.net> References: <424ACFF1.5000403@bitsim.se> <111d2ae873d1bfee413409dfc4f2f064@freescale.com> <424BEDFC.8080300@jonmasters.org> <1112284541.23088.77.camel@cashmere.sps.mot.com> <4250EACF.1040403@bitsim.se> <42511D55.4040507@ru.mvista.com> <20050407172003.GP3396@smtp.west.cox.net> <1112895351.11987.89.camel@cashmere.sps.mot.com> <20050407174936.GR3396@smtp.west.cox.net> Content-Type: text/plain Message-Id: <1113235114.9846.11.camel@cashmere.sps.mot.com> Mime-Version: 1.0 Date: Mon, 11 Apr 2005 10:58:34 -0500 Cc: Jon Masters , Andrei Konovalov , Sylvain Munaut , Linux PPC Embedded list , Jakob Viketoft Subject: Re: Flat OF Device Tree for ppc32 [was: Platform bus/ppc sys model...] List-Id: Linux on Embedded PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Thu, 2005-04-07 at 12:49, Tom Rini wrote: > Please post to the list as an RFC. Thanks. Folks, Apologies to those who have received this notice twice. I first sent it to the list where it was summarily denied for size reasons. I have now posted a tgz file here instead: http://www.jdl.com/bdt_cleanup.tgz What follows is my original email content. OK, for those keeping score over on the U-Boot list, _this_ message is really intended to be sent to the public list. :-) Here (as noted above) are my diffs against a clone of http://linux.bkbits.net/linux-2.6 as last pulled a couple days ago. (*) Please consider this a Request For Comments for now. Feel free to apply it and test it out as well, of course. :-) I'll sign-off on it when it has ripened some more and gets a nod or two... These changes relocate almost all of the ppcboot.h definitions into new files, arc/ppc/syslib/fw_bdt.[ch] and front them with a new, shim interface in include/asm-ppc/firmware.h. There is a Kconfig option that allows you to select between a "bd_t" interface and a non-existant "OF Flat dev tree" interface. Choose wisely (default) for now. It adds the new fw_bdt.o file. Some potential gotchas or points to note: - As of this patch, no interface to any board should change. This just isolates the scattered bd_t references to one place. - On Kumar's advice arch/ppc/boot/simple was totally ignored. For now; this round. It can be next on the hit parade easily. It holds the last reference to ppcboot.h still. - Earlier cut-n-paste of some devices led to me changing a few files over in 68k land to remove some now-obsolete ppcboot.h related comments justs for completeness. - I've compiled uImage using defconfigs for the following boards: 8560_ads cpci690 ash redwood5 8540_ads ads_8272 TQM8260 est8260 rpx8260 bseip mbx mpc834x_sys ocotea lite5200 hdpu lopec TQM860L rpxlite radstone_ppc7d walnut - The file include/asm-ppc/ppcboot.h used to contain a nested include of linux/types.h that was tacitly used by many files. In ripping ppcboot.h out of many platform .h files, I've had to add direct #include in several places. If your board isn't listed above and it looks really broken, consider if it needs a ? Enjoy, jdl -- (*) -- BK is dead. Long live BK!