From: Kim Phillips Date: Tue, 27 Nov 2007 11:58:34 -0600 Subject: [U-Boot-Users] [PATCH] fdt: add common memory fixup function In-Reply-To: References: <47F3F98010FF784EBEE6526EAAB078D1024F8803@tq-mailsrv.tq-net.de> <11691DDC-C7F7-46F8-BC34-12F32D043060@kernel.crashing.org> <20071127103902.d726a598.kim.phillips@freescale.com> Message-ID: <20071127115834.9ff6aea6.kim.phillips@freescale.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Tue, 27 Nov 2007 11:16:50 -0600 Kumar Gala wrote: > > On Nov 27, 2007, at 10:39 AM, Kim Phillips wrote: > > > On Tue, 27 Nov 2007 08:13:07 -0600 > > Kumar Gala wrote: > > > >>>> Was thinking about this some more and realized I don't like > >>>> fdt_memory() getting called via bootm w/o the board code have > >>>> control. > >>>> > >>>> I think Kim suggest we have a CONFIG_OF_MEMORY_FIXUP that this call > >>>> is > >>>> wrapped around. But leave fdt_memory() available. I want it such > >>>> that the board code/config is in control of what fixups gets called > >>>> for it. > >>> > >>> That's funny. My first patch wrapped the fixup in > >>> CONFIG_OF_MEMORY_FIXUP > >>> and it was you, who suggested to drop this ;-). AFAIR Kim > >>> suggested to > >>> wrap it in the existing OF_LIBFDT instead - what I did then. But I > >>> have no objections, if you put CONFIG_OF_MEMORY_FIXUP in place > >>> again. > >> > >> Yeah, I know. I realized later that we should leave it to board code > >> to decide what it wants in such cases. The reason for that is if you > >> can envision having multiple device trees in multiprocessor system > >> with each processor running a different OS. > > > > so make it a weak fn then? > > weak doesn't cover it. I don't want to implement my own version of > fdt_memory_fixup(). I want to control how its called. ya, ok. I see this now. Kim