]> git.sur5r.net Git - u-boot/commitdiff
MX51EVK: Use SWx macros in PMIC init
authorMarek Vasut <marek.vasut@gmail.com>
Wed, 19 Jan 2011 04:40:36 +0000 (04:40 +0000)
committerAlbert Aribaud <albert.aribaud@free.fr>
Tue, 1 Feb 2011 23:54:42 +0000 (00:54 +0100)
Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
board/freescale/mx51evk/mx51evk.c

index 7c50c54cd440159995c9fc6f0d57b0d4d88d9754..02a765dcfba3bf80668547b8338e7f37d7805507 100644 (file)
@@ -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);