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 v2 3/3] MX5:MX53: add initial support for MX53EVK board
Date: Tue, 28 Dec 2010 09:13:00 +0100	[thread overview]
Message-ID: <4D199C0C.3000802@denx.de> (raw)
In-Reply-To: <AANLkTinOTWr8nbT1aNmEu4uMNc7TsQX-fGMDfCy-=+qJ@mail.gmail.com>

On 12/28/2010 08:45 AM, Jason Liu wrote:

>>> +     /* Set VDDA to 1.25V */
>>> +     val = pmic_reg_read(REG_SW_2);
>>> +     val = (val & (~0x1F)) | 0x1A;
>>
>> I have already commented this. Please drop all fix constants and use
>> already provided #define or add new ones if needed.
> 
> Do you think that both 0x1F and 0x1A should be used with #define?

Yes, of course. I see you have not included any specific pmic header in
the file (take a look at the mc13892.h file). Nobody knows what 0x1F and
0x1A mean, and everybody relies only on the comment. However, not always
a comment is updated...

> Do you think that both 0x1F and 0x1C should be used with #define?

Yes

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-28  8:13 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-22 13:23 [U-Boot] [PATCH v2 1/3] MX5: Add initial support for MX53 processor Jason Liu
2010-12-22 13:23 ` [U-Boot] [PATCH v2 2/3] mxc_i2c: add " Jason Liu
2010-12-22 18:07   ` Albert ARIBAUD
2010-12-23  2:30     ` Jason Liu
2010-12-22 13:23 ` [U-Boot] [PATCH v2 3/3] MX5:MX53: add initial support for MX53EVK board Jason Liu
2010-12-27 10:25   ` Stefano Babic
2010-12-28  7:45     ` Jason Liu
2010-12-28  8:13       ` Stefano Babic [this message]
2010-12-27 10:06 ` [U-Boot] [PATCH v2 1/3] MX5: Add initial support for MX53 processor Stefano Babic
2010-12-28  8:12   ` Jason Liu
2010-12-28  8:31     ` Stefano Babic
2010-12-28  8:36       ` Jason Liu
2011-01-09 23:03 ` Wolfgang Denk
2011-01-10  1:24   ` 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=4D199C0C.3000802@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.