public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Tolunay Orkun <listmember@orkun.us>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] Breakage of board ports on new features.
Date: Mon, 04 Dec 2006 23:15:03 -0600	[thread overview]
Message-ID: <45750057.3030400@orkun.us> (raw)
In-Reply-To: <172EAD69-405B-45B7-833B-0CDD5662B19A@kernel.crashing.org>

Kumar Gala wrote:
>
> On Dec 4, 2006, at 7:13 PM, Tolunay Orkun wrote:
>
>> Kumar Gala wrote:
>>> On Dec 4, 2006, at 5:20 PM, Timur Tabi wrote:
>>>> Wolfgang Denk wrote:
>>>>
>>>>> Are you absolutely sure we will *never* want to make a difference
>>>>> between a MPC8349 and any other type of MPC834x?
>>>>> What is the exact problem you're addressing?
>>>> I think Kumar's point is that the code that's correctly marked 
>>>> with  CONFIG_MPC8349 is not 8349-specific.  It's 834x-specific, and 
>>>> there  already is a macro for 834x.  If someone were to add support 
>>>> for an  8343 or 8347, they would need to apply Kumar's patch anyway.
>>>>
>>>> *IF* some of this code is really 8349-specific, then the person  
>>>> adding support for the 8343 or 8347 would need to modify this code  
>>>> again.  However, I don't think that's going to happen.
>>> This is exactly what I'm saying.  The CONFIG_MPC8349 was too 
>>> specific  and really meant CONFIG_MPC834X and thus I changed it.  
>>> If/when  someone's got something that is MPC8349 specific they can 
>>> re- introduce CONFIG_MPC8349.
>>
>> The AMCC 4XX based boards we define CONFIG_PPC4XX (for the family) as 
>> well as CONFIG_PPC405GP (for example) for specific processor support. 
>> The X'd version is used to enable common code while the specific 
>> version is used whenever divergences exist from the common code. 
>> Right now there might not be a specific difference from MPC8349 code 
>> but it might be good to define both MPC8349 and MPC834X for sake of 
>> consistency and for future proofing. Without defining the specific 
>> version when it is time to introduce that divergence you would wonder 
>> what boards were using the MPC8349 and what not (unless the board 
>> name gives it away).
>
> The concept is nice, but I think we should add it when its needed.  
> The differences between the MPC834X family of processors are handled 
> by features and not by specifying the specific processor.  This is 
> because even on the specific processor you can choose to enable or 
> disable the feature (PCI2, 32/64-bit ddr, etc.).

Well, you can have still have the feature enable/disable. The 
CONFIG_MPC8349 or whatever would make sure the feature could not be 
applied on a cpu architecture/platform that is not applicable. Basically 
it prevents configuration errors.

>
> When someone comes up with a good reason for having a CONFIG_MPC8349 
> then we should add it, until then I think its likely to get used 
> incorrectly (as it already has been).

What I am saying is that you should rename existing CONFIG_MPC8349 to 
CONFIG_MPC834X and only on the boards that actually use 8349 define the 
CONFIG_MPC8349 (in addition, not in lieu of). Of course other boards 
using other member (8343, 8347) need to have their specific 
CONFIG_MPC8343 and CONFIG_MPC8347 options defined appropriately as well 
(again in addition to CONFIG_MPC834X). It is better to do this while the 
number of boards is small.

Anyway, I just pointed to the existing practice in U-Boot. In the end, 
it's probably Wolfgang's decision as U-Boot project leader.

Tolunay

  reply	other threads:[~2006-12-05  5:15 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-12-02 22:08 [U-Boot-Users] Breakage of board ports on new features Pantelis Antoniou
2006-12-02 23:42 ` Wolfgang Denk
2006-12-04 17:32   ` Kumar Gala
2006-12-04 17:54     ` Timur Tabi
2006-12-04 18:40       ` Kumar Gala
2006-12-04 23:09         ` Wolfgang Denk
2006-12-04 23:20           ` Timur Tabi
2006-12-04 23:33             ` Kumar Gala
2006-12-05  1:13               ` Tolunay Orkun
2006-12-05  2:10                 ` Kumar Gala
2006-12-05  5:15                   ` Tolunay Orkun [this message]
2006-12-05  5:32                     ` Wolfgang Denk
2006-12-05 14:23                       ` Kumar Gala
2006-12-05 15:35                         ` Wolfgang Denk
2006-12-05 16:15                           ` Kumar Gala
2006-12-05 16:57                             ` Wolfgang Denk
2006-12-05 17:42                               ` Kumar Gala
2006-12-05 17:44                                 ` Timur Tabi
2006-12-05 21:35                                 ` Wolfgang Denk
2006-12-05 21:50                                   ` Kumar Gala
2006-12-05 16:36                     ` Timur Tabi
2006-12-04 23:08       ` Wolfgang Denk
2006-12-04 16:14 ` Timur Tabi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=45750057.3030400@orkun.us \
    --to=listmember@orkun.us \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox