All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stefano Babic <sbabic@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] MX5: Add initial support for mx53
Date: Tue, 07 Dec 2010 08:47:24 +0100	[thread overview]
Message-ID: <4CFDE68C.1070608@denx.de> (raw)
In-Reply-To: <AANLkTi=usix6G49f40TrQtW9ewBdB_t=Xpa8Abf9FysM@mail.gmail.com>

On 12/07/2010 03:58 AM, Jason Liu wrote:

>> I know all this crap is for MX51 in the TO1 version, even if I do not
>> know if there are boards with this first version of the processor.
>> Probably we must maintain this stuff for compatibility. Really I would
>> like to remove it completely ;-).
> 
> Do you mind that I remove it completely here?

Really I do not know. This is clearly a workaround for the first MX.51
version (TO1), and it makes no sense for actual processor's revision. I
do not know if there are mx51evk with this revision on board, but if
there are we should maintain this code for compatibility reason.

> The motivation to use " is_soc_type(CPU_TYPE) "is to remove the some
> #ifdef CONFIG_MX51in this file,
>  I can change back to the following,
> 
> + #if defined (MX_CPU_MX51)
> +               if (is_soc_rev(CHIP_REV_2_0) < 0) {
> +                                code snip
> +  }
> + #endif
> 
> Is this ok?

I think so. If we were able to do everything on runtime, then we could
proceed removing all #ifdef stuff. However, we need the #ifdef in the
header files to select the different internal structures between MX.51
and MX.53.

Best regards,
Stefano Babic

-- 
=====================================================================
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80  Email: office at denx.de
=====================================================================

  reply	other threads:[~2010-12-07  7:47 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-06 10:57 [U-Boot] [PATCH] MX5: Add initial support for mx53 Jason Liu
2010-12-06 16:06 ` Stefano Babic
2010-12-07  2:58   ` Jason Liu
2010-12-07  7:47     ` Stefano Babic [this message]
2010-12-07  7:58       ` Jason Liu

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=4CFDE68C.1070608@denx.de \
    --to=sbabic@denx.de \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.