mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2026-03-14 21:10:27 +01:00
mxs: Do not disable bo detection when DC-DC is already enabled
In case the DC-DC is already enabled mxs_enable_4p2_dcdc_input() returns without reenabling brown out detection. So fix this issue by moving the return before brown out deactivation. Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com> Reviewed-by: Marek Vasut <marex@denx.de>
This commit is contained in:
parent
68006aeb6d
commit
7bbc5ff732
1 changed files with 5 additions and 5 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue