]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ENGR00278941-2: arm: imx: correct LDO bypass flow logic
authorAnson Huang <b20788@freescale.com>
Tue, 10 Sep 2013 20:23:26 +0000 (16:23 -0400)
committerJason Liu <r64343@freescale.com>
Wed, 30 Oct 2013 01:55:43 +0000 (09:55 +0800)
The LDO analog bypass switch is necessary before entering DSM when LDO
is working at digital bypass mode, previous coding logic is incorrect,
fix it.

Signed-off-by: Anson Huang <b20788@freescale.com>
arch/arm/mach-imx/suspend-imx6.S

index 4a86446bdea6279c02bb02cb025cb50341ad4979..a620560a5e26374b0248e7f0aeb6d3140e8b18cf 100644 (file)
@@ -619,8 +619,9 @@ rbc_loop:
         */
        ldr     r8, =IMX_IO_P2V(MX6Q_ANATOP_BASE_ADDR)
        ldr     r7, [r8, #MX6Q_ANATOP_CORE]
-       ands    r7, r7, #0x1f
-       beq     ldo_check_done1
+       and     r7, r7, #0x1f
+       cmp     r7, #0x1f
+       bne     ldo_check_done1
 ldo_analog_bypass:
        ldr     r7, [r8, #MX6Q_ANATOP_CORE]
        bic     r7, r7, #0x1f