public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Marek Vasut <marek.vasut@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 2/3 v2] MX51EVK: Use SWx macros in PMIC init
Date: Wed, 19 Jan 2011 15:40:36 +0100	[thread overview]
Message-ID: <1295448037-3676-2-git-send-email-marek.vasut@gmail.com> (raw)
In-Reply-To: <1295448037-3676-1-git-send-email-marek.vasut@gmail.com>

Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
---
v2: Remove stray newline and useless parens

 board/freescale/mx51evk/mx51evk.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/board/freescale/mx51evk/mx51evk.c b/board/freescale/mx51evk/mx51evk.c
index 2160d5a..726ce18 100644
--- a/board/freescale/mx51evk/mx51evk.c
+++ b/board/freescale/mx51evk/mx51evk.c
@@ -198,17 +198,17 @@ static void power_init(void)
 
 	/* Set core voltage to 1.1V */
 	val = pmic_reg_read(REG_SW_0);
-	val = (val & (~0x1F)) | 0x14;
+	val = (val & ~SWx_VOLT_MASK) | SWx_1_100V;
 	pmic_reg_write(REG_SW_0, val);
 
 	/* Setup VCC (SW2) to 1.25 */
 	val = pmic_reg_read(REG_SW_1);
-	val = (val & (~0x1F)) | 0x1A;
+	val = (val & ~SWx_VOLT_MASK) | SWx_1_250V;
 	pmic_reg_write(REG_SW_1, val);
 
 	/* Setup 1V2_DIG1 (SW3) to 1.25 */
 	val = pmic_reg_read(REG_SW_2);
-	val = (val & (~0x1F)) | 0x1A;
+	val = (val & ~SWx_VOLT_MASK) | SWx_1_250V;
 	pmic_reg_write(REG_SW_2, val);
 	udelay(50);
 
-- 
1.7.2.3

  reply	other threads:[~2011-01-19 14:40 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-19 14:40 [U-Boot] [PATCH 1/3 RESEND] MC13892: Add SWx buck switchers definitions Marek Vasut
2011-01-19 14:40 ` Marek Vasut [this message]
2011-02-01 17:44   ` [U-Boot] [PATCH 2/3 v2] MX51EVK: Use SWx macros in PMIC init Stefano Babic
2011-01-19 14:40 ` [U-Boot] [PATCH 3/3 v4] iMX5: EfikaMX: Preliminary board support Marek Vasut
2011-01-31 10:00   ` Marek Vasut
2011-01-31 10:20     ` Stefano Babic
2011-01-31 12:06       ` Albert ARIBAUD
2011-01-31 13:02         ` Stefano Babic
2011-02-01  6:14         ` Prafulla Wadaskar
2011-02-01  6:52           ` Albert ARIBAUD
2011-02-01  6:53             ` Albert ARIBAUD
2011-02-01  7:57             ` Wolfgang Denk
2011-02-01 12:29               ` Albert ARIBAUD
2011-01-31 12:26       ` Marek Vasut
2011-02-01 17:48   ` Stefano Babic
2011-02-01 17:42 ` [U-Boot] [PATCH 1/3 RESEND] MC13892: Add SWx buck switchers definitions Stefano Babic

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=1295448037-3676-2-git-send-email-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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox