public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] Supporting two boards which are almost similar
@ 2010-06-25 11:10 Sudhakar Rajashekhara
  2010-06-29 10:29 ` Sudhakar Rajashekhara
  0 siblings, 1 reply; 4+ messages in thread
From: Sudhakar Rajashekhara @ 2010-06-25 11:10 UTC (permalink / raw)
  To: u-boot

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.

Thanks in advance,
Sudhakar

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [U-Boot] Supporting two boards which are almost similar
  2010-06-25 11:10 [U-Boot] Supporting two boards which are almost similar Sudhakar Rajashekhara
@ 2010-06-29 10:29 ` Sudhakar Rajashekhara
  2010-06-29 10:49   ` Detlev Zundel
  0 siblings, 1 reply; 4+ messages in thread
From: Sudhakar Rajashekhara @ 2010-06-29 10:29 UTC (permalink / raw)
  To: u-boot

Hi,

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?

Regards,
Sudhakar

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [U-Boot] Supporting two boards which are almost similar
  2010-06-29 10:29 ` Sudhakar Rajashekhara
@ 2010-06-29 10:49   ` Detlev Zundel
  2010-07-23 10:28     ` Sudhakar Rajashekhara
  0 siblings, 1 reply; 4+ messages in thread
From: Detlev Zundel @ 2010-06-29 10:49 UTC (permalink / raw)
  To: u-boot

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

-- 
A foolish consistency is the hobgoblin of little minds.
                                   -- Ralph Waldo Emerson             
--
DENX Software Engineering GmbH,      MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich,  Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-40 Fax: (+49)-8142-66989-80 Email: dzu at denx.de

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [U-Boot] Supporting two boards which are almost similar
  2010-06-29 10:49   ` Detlev Zundel
@ 2010-07-23 10:28     ` Sudhakar Rajashekhara
  0 siblings, 0 replies; 4+ messages in thread
From: Sudhakar Rajashekhara @ 2010-07-23 10:28 UTC (permalink / raw)
  To: u-boot

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-07-23 10:28 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-25 11:10 [U-Boot] Supporting two boards which are almost similar Sudhakar Rajashekhara
2010-06-29 10:29 ` Sudhakar Rajashekhara
2010-06-29 10:49   ` Detlev Zundel
2010-07-23 10:28     ` Sudhakar Rajashekhara

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox