From mboxrd@z Thu Jan 1 00:00:00 1970 From: Simon Glass Date: Mon, 9 Jan 2012 10:17:15 -0800 Subject: [U-Boot] [RFC PATCH 01/19] Introduce generic global_data In-Reply-To: <4F0ACDD5.4050406@gmail.com> References: <1325054160-24894-1-git-send-email-sjg@chromium.org> <1325054160-24894-2-git-send-email-sjg@chromium.org> <4EFC1B02.1070607@googlemail.com> <4F097476.9090803@gmail.com> <4F0ACDD5.4050406@gmail.com> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Andreas, On Mon, Jan 9, 2012 at 3:21 AM, Andreas Bie?mann wrote: > Hi Simon and Graeme, > > On 08.01.2012 19:13, Simon Glass wrote: >> Hi Graeme, >> >> On Sun, Jan 8, 2012 at 2:48 AM, Graeme Russ wrote: >>> Hi Simon, >>> >>> On 08/01/12 09:33, Simon Glass wrote: >>>> Hi Andreas, >>>> >>>> On Wed, Dec 28, 2011 at 11:47 PM, Andreas Bie?mann >>>> wrote: >>>>> Dear Simon, >>>>> >>>>> On 28.12.11 07:35, Simon Glass wrote: > > > >>>> For now I would prefer to do nothing on either point, since bringing >>>> everything into one place shows up the conflicts and similarities. >>>> Part of the purpose of the generic board effort is to minimise these, >>>> and they are hard to spot if they are all in separate files. > > Currently I agree with you both. It would be best to just move all the > specific stuff into one file but let the structure as is (from view of > SoC/arch). Later on we could shrink it down by one of the mentioned > possibilities. OK good. > >>> Hmm, I'm starting to wonder if we should instead have: >>> >>> struct gd_generic { >>> ? ? ? ?/* Relocation stuff */ >>> >>> ? ? ? ?/* pre-console stuff */ >>> >>> ? ? ? ?/* Jump table stuff */ >>> } >>> >>> struct gd { >>> ? ? ? ?struct gd_generic common; >>> >>> ? ? ? ?/* Arch specific stuff */ >>> } >>> >>> This eliminates the 'no arch specific global data' corner case > > Sounds good to me, but if we restructure gd_t in any way we should > introduce some ability to version the struct for future changes (keep > stand alone apps in mind!). Yes - in fact just moving to generic board makes the API incompatible. I suspect I should increment something somewhere - will take a look. Regards, Simon > > best regards > > Andreas Bie?mann