From mboxrd@z Thu Jan 1 00:00:00 1970 From: Albert ARIBAUD Date: Tue, 06 Mar 2012 08:26:35 +0100 Subject: [U-Boot] [PATCH 1/3] ARM: lib: Remove CONFIG_ARCH_CPU_INIT dependency In-Reply-To: <20120305175631.GD18051@bill-the-cat> References: <1330610560-15978-1-git-send-email-fabio.estevam@freescale.com> <4F4FE16D.9060304@aribaud.net> <4F4FEDA9.3080307@aribaud.net> <20120305175631.GD18051@bill-the-cat> Message-ID: <4F55BC2B.5040301@aribaud.net> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Tom, Le 05/03/2012 18:56, Tom Rini a ?crit : > On Thu, Mar 01, 2012 at 10:44:09PM +0100, Albert ARIBAUD wrote: > >> How about this approach: since the problem is the presence of CPU- >> (or Soc-)level elements in board-level config files, and since there >> are probably many other such items in board config files (CPU type >> in a SoC and HW IP configurations, for instance) then why not >> introduce some cpu-config and soc-config file which would group all >> those cpu- (resp soc-)level items, including any "#define >> CONFIG_ARCH_CPU_INIT", and replace these items in board config files >> with a single "#include "-config.h" (or "-config.h")? This >> would significantly reduce board config file size. > > Note that omap4/5 do something like this already and my hope is to do > this for omap3/similar and make some other common files as well. It's > not the top priority for me atm however... Ok, so that's one more reason not to go the "everybody call (a possibly weak and empty) arch_cpu_init()" route. Amicalement, -- Albert.