From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sudhakar Rajashekhara Date: Fri, 23 Jul 2010 15:58:52 +0530 Subject: [U-Boot] Supporting two boards which are almost similar In-Reply-To: References: <042f01cb1456$ffa4e250$feeea6f0$@raj@ti.com> <06aa01cb1775$f63b3940$e2b1abc0$@raj@ti.com> Message-ID: <053001cb2a51$d8d73090$8a8591b0$@raj@ti.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Detlev, On Tue, Jun 29, 2010 at 16:19:41, Detlev Zundel wrote: > Hi Sudhakar, > > > On Fri, Jun 25, 2010 at 16:40:19, Sudhakar Rajashekhara wrote: > >> Hi, > >> > >> Spectrum digital has two versions of DM6467 EVM, DM6467 and DM6467T. > >> Though there are some video related differences between these two boards, > >> from U-Boot perspective the only difference the developer need to worry > >> is the different oscillator frequency. DM6467 has 27MHz crystal but > >> DM6467T has 33MHz crystal. Both these EVMs are registered as two different > >> boards in mach-types.h. Existing U-Boot has support DM6467 EVM which has > >> 27MHz crystal. How should I go about adding support for DM6467T EVM which > >> has 33MHz crystal? Do I need to add a new configuration file for this or > >> can I make use of the existing configuration file in any way? > >> > >> One method I was aware of was, using some scripting from the top level > >> Makefile but I believe this is not recommended. > >> > > > > Any other method of achieving this? > > Actually I'm just in the process of answering your question. > My immediate response would have been "use -t for mkconfig" but this > does not (yet) work for boards.cfg versions. So I'm just in the process > of testing a mkconfig extension to allow for similar handling of > "BOARD_OPTION1_OPTION2" configurations which will be split into > 'CONFIG_MK_{BOARD,OPTION1,OPTION2}' defines. > > When we have this, we can use a common config file and use #ifdefs for > these CONFIG_MK defines. > > Stay tuned > Detlev Were you able to do any further investigation on this? I can take up some testing, if that helps? Thanks, Sudhakar