diff options
author | Tom Rini <trini@konsulko.com> | 2015-06-08 08:37:02 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2015-06-08 08:37:02 -0400 |
commit | 4d80051b63ff54f6b6f90fceb92cf87ab3401ecb (patch) | |
tree | aea5bee67c756558fc8c820b4ee04adb75c85146 /arch/arm/cpu/arm926ejs/mxs | |
parent | 5bcec545a6ca977ad74ee9fe0f2b335d348b5000 (diff) | |
parent | 943a3f2ccb71bcb4a6041bc2946129c4d4bb197e (diff) | |
download | u-boot-imx-4d80051b63ff54f6b6f90fceb92cf87ab3401ecb.zip u-boot-imx-4d80051b63ff54f6b6f90fceb92cf87ab3401ecb.tar.gz u-boot-imx-4d80051b63ff54f6b6f90fceb92cf87ab3401ecb.tar.bz2 |
Merge branch 'master' of git://www.denx.de/git/u-boot-imx
Diffstat (limited to 'arch/arm/cpu/arm926ejs/mxs')
-rw-r--r-- | arch/arm/cpu/arm926ejs/mxs/spl_power_init.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/arch/arm/cpu/arm926ejs/mxs/spl_power_init.c b/arch/arm/cpu/arm926ejs/mxs/spl_power_init.c index c342217..42f3df2 100644 --- a/arch/arm/cpu/arm926ejs/mxs/spl_power_init.c +++ b/arch/arm/cpu/arm926ejs/mxs/spl_power_init.c @@ -332,6 +332,11 @@ static void mxs_enable_4p2_dcdc_input(int xfer) debug("SPL: %s 4P2 DC-DC Input\n", xfer ? "Enabling" : "Disabling"); + if (xfer && (readl(&power_regs->hw_power_5vctrl) & + POWER_5VCTRL_ENABLE_DCDC)) { + return; + } + prev_5v_brnout = readl(&power_regs->hw_power_5vctrl) & POWER_5VCTRL_PWDN_5VBRNOUT; prev_5v_droop = readl(&power_regs->hw_power_ctrl) & @@ -343,11 +348,6 @@ static void mxs_enable_4p2_dcdc_input(int xfer) clrbits_le32(&power_regs->hw_power_ctrl, POWER_CTRL_ENIRQ_VDD5V_DROOP); - if (xfer && (readl(&power_regs->hw_power_5vctrl) & - POWER_5VCTRL_ENABLE_DCDC)) { - return; - } - /* * Recording orignal values that will be modified temporarlily * to handle a chip bug. See chip errata for CQ ENGR00115837 |