diff options
author | Max Krummenacher <max.krummenacher@toradex.com> | 2017-03-28 16:11:05 +0200 |
---|---|---|
committer | Marcel Ziswiler <marcel.ziswiler@toradex.com> | 2017-04-03 15:36:43 +0200 |
commit | 051ee1a1c24058db62f10a177b1271daebbd2ebe (patch) | |
tree | ed289a715c5e7eaac0fadfbc4730937e70ffe54e /drivers | |
parent | 894914718e9e563eb601e0090e1ae2ddadf426a9 (diff) |
apalis-imx6: use stopmode for poweroff
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/power/reset/imx-snvs-poweroff.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/drivers/power/reset/imx-snvs-poweroff.c b/drivers/power/reset/imx-snvs-poweroff.c index 03447e08ffc4..525f8cb397a7 100644 --- a/drivers/power/reset/imx-snvs-poweroff.c +++ b/drivers/power/reset/imx-snvs-poweroff.c @@ -41,8 +41,16 @@ static int imx_poweroff_probe(struct platform_device *pdev) return -ENODEV; } - if (!of_machine_is_compatible("toradex,colibri_imx6dl")) + /* + * The Apalis/Colibri iMX6 modules cannot use PMIC_ON_REQ to shutdown + * the PMIC or the module could only be restarted by power cycling + * if the SNVS is supplied by a backup battery. + * compare with pm-imx6.c, imx6_stop_mode_poweroff() + */ + if (!of_machine_is_compatible("toradex,colibri_imx6dl") && + !of_machine_is_compatible("toradex,apalis_imx6q")) pm_power_off = do_imx_poweroff; + return 0; } |