]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ENGR00179851: i.mx6dl: map the MEM mode to STANDBY mode
authorJason Liu <r64343@freescale.com>
Tue, 17 Apr 2012 11:08:00 +0000 (19:08 +0800)
committerOliver Wendt <ow@karo-electronics.de>
Mon, 30 Sep 2013 12:11:34 +0000 (14:11 +0200)
Due to i.mx6dl TO1.0(TKT094231), Suspend/resume cannot work
stable under deep sleep mode(Dormant, MEM MODE) thus we need
map the MEM mode to STANBY mode(ARM will not power off), this
issue will be fixed on TO1.1

Signed-off-by: Jason Liu <r64343@freescale.com>
arch/arm/mach-mx6/pm.c

index 76a2c8dca50ef158d33590197abcce2468ed7012..0d611e2aad55f929e964eb7aa5341ca8270185c4 100644 (file)
@@ -293,6 +293,12 @@ static int mx6_suspend_enter(suspend_state_t state)
        }
        mx6_suspend_store();
 
+       /* i.MX6dl TO1.0 TKT094231: can't support ARM_POWER_OFF mode */
+       if (state == PM_SUSPEND_MEM &&
+               (mx6dl_revision() == IMX_CHIP_REVISION_1_0)) {
+               state = PM_SUSPEND_STANDBY;
+       }
+
        switch (state) {
        case PM_SUSPEND_MEM:
                gpu_power_down();