public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Stefano Babic <sbabic@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH V2] MX35: mx35pdk: wrong board revision
Date: Tue, 10 Apr 2012 08:52:43 +0200	[thread overview]
Message-ID: <4F83D8BB.4000604@denx.de> (raw)
In-Reply-To: <CAOMZO5AG6j1a+6pxygq3yCm49vATtiKZC1XH7=_tB=0CKMBJgA@mail.gmail.com>

On 09/04/2012 14:56, Fabio Estevam wrote:
> On 4/9/12, Stefano Babic <sbabic@denx.de> wrote:
>> The board revision is detected accessing to the pmic,
>> that is not available before relocation (I2C).
>> This generates the following error:
>>
>> CPU:   Freescale i.MX35 rev 2.0 at 532 MHz.
>> Reset cause: WDOG
>> <reg num> = 7 is invalid. Should be less than 0
>> Board: MX35 PDK 1.0
>>
>> The revision number is wrong, as a default value is printed
>> (tested on a mx35pdk Rev. 2.0).
>>
>> Move the output in the board_late_init(), when
>> pmic can be accessed.
>>
>> Signed-off-by: Stefano Babic <sbabic@denx.de>
>> ---
>>
>> V2: drop dead code
>>
>>  board/freescale/mx35pdk/mx35pdk.c |   11 -----------
>>  include/configs/mx35pdk.h         |    1 -
>>  2 files changed, 0 insertions(+), 12 deletions(-)
> 

Hi Fabio,

> Looks like there is something wrong with this patch: 12 deletions and
> no insertions.
> 
> Comparing it with v1 I would expect that only the "#if 0 and #endif"
> were removed.

At first glance, yes. However, the patch produces the correct code. The
checkboard function is removed, but not completely, and its last two
statements (printf and return) slip into the board_late_init() function,
where the i2c is already initialized and pmic already used.

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-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================

      reply	other threads:[~2012-04-10  6:52 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-09 11:42 [U-Boot] [PATCH] MX35: mx35pdk: wrong board revision Stefano Babic
2012-04-09 11:51 ` [U-Boot] [PATCH V2] " Stefano Babic
2012-04-09 12:56   ` Fabio Estevam
2012-04-10  6:52     ` Stefano Babic [this message]

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=4F83D8BB.4000604@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox