All of lore.kernel.org
 help / color / mirror / Atom feed
From: Marek Vasut <marek.vasut@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 2/2] iMX5: EfikaMX: Preliminary board support
Date: Tue, 18 Jan 2011 20:32:33 +0100	[thread overview]
Message-ID: <201101182032.33444.marek.vasut@gmail.com> (raw)
In-Reply-To: <4D330CFE.7070804@denx.de>

On Sunday 16 January 2011 16:21:34 Stefano Babic wrote:
> On 01/13/2011 06:27 PM, Marek Vasut wrote:
> > As for the PMIC, other boards don't use any #defines for those constants
> > either, which obviously doens't mean it's right.
> 
> Well, this is not true. You use in yourd board a lot of these constants.
> There are only a few of them that are not used and
> 
> > +
> > +	/* NOTE: if (is_soc_rev(CHIP_REV_2_0) >= 0) */
> 
> You can drop this line
> 
> > +
> > +	/* Set core voltage to 1.1V */
> > +	val = pmic_reg_read(REG_SW_0);
> > +	val = (val & (~0x1F)) | 0x14;
> > +	pmic_reg_write(REG_SW_0, val);
> 
> Values are defined in Table 47 in MC13892.h manual. The low level is 0.6
> Volt, that corresponds to "0x0", and each bit increments the voltage by
> 25mV. I can suggest to add a macro to mc13892.h that return the value
> for register when the desired voltage (in millivolt) is passed.
> 
> > +
> > +	/* Setup VCC (SW2) to 1.25 */
> > +	val = pmic_reg_read(REG_SW_1);
> > +	val = (val & (~0x1F)) | 0x1A;
> > +	pmic_reg_write(REG_SW_1, val);
> 
> ..and use it here, too.
> 
> > +
> > +	/* Setup 1V2_DIG1 (SW3) to 1.25 */
> > +	val = pmic_reg_read(REG_SW_2);
> > +	val = (val & (~0x1F)) | 0x1A;
> > +	pmic_reg_write(REG_SW_2, val);
> > +	udelay(50);
> 
> ..and here.

Fixed
> 
> > +/***********************************************************************
> > *******
> 
> I have not checked before, but this is not the coding style for
> multiline comments.

Well it's more of a section separator, that's why this bold stuff. I'd prefer to 
leave it there for readability's sake.

Cheers

  reply	other threads:[~2011-01-18 19:32 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-13 17:27 [U-Boot] [PATCH 1/2 v2] BLOCK: Add freescale IMX51 PATA driver Marek Vasut
2011-01-13 17:27 ` [U-Boot] [PATCH 2/2] iMX5: EfikaMX: Preliminary board support Marek Vasut
2011-01-16 15:21   ` Stefano Babic
2011-01-18 19:32     ` Marek Vasut [this message]
2011-01-18 20:08       ` Wolfgang Denk
2011-01-14 23:57 ` [U-Boot] [PATCH 1/2 v2] BLOCK: Add freescale IMX51 PATA driver stefano babic
2011-01-17 23:17   ` Wolfgang Denk

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=201101182032.33444.marek.vasut@gmail.com \
    --to=marek.vasut@gmail.com \
    --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.