diff options
author | Marek Vasut <marek.vasut@gmail.com> | 2011-01-19 04:40:36 +0000 |
---|---|---|
committer | Albert Aribaud <albert.aribaud@free.fr> | 2011-02-02 00:54:42 +0100 |
commit | c4a3c7442bfcd226da8fe8747c3d7141fc531348 (patch) | |
tree | 3fa5057918a92619d5ded0ab15317dc04804054f /board/freescale/mx51evk | |
parent | 3db9e9d7b4584fb736cf439c60ac191ee93221c2 (diff) | |
download | u-boot-imx-c4a3c7442bfcd226da8fe8747c3d7141fc531348.zip u-boot-imx-c4a3c7442bfcd226da8fe8747c3d7141fc531348.tar.gz u-boot-imx-c4a3c7442bfcd226da8fe8747c3d7141fc531348.tar.bz2 |
MX51EVK: Use SWx macros in PMIC init
Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
Diffstat (limited to 'board/freescale/mx51evk')
-rw-r--r-- | 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 7c50c54..02a765d 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); |