diff options
Diffstat (limited to 'arch/arm/mach-imx/pm-vf610.c')
-rw-r--r-- | arch/arm/mach-imx/pm-vf610.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/arch/arm/mach-imx/pm-vf610.c b/arch/arm/mach-imx/pm-vf610.c index f5c54abd8ccc..5a3df0caf23a 100644 --- a/arch/arm/mach-imx/pm-vf610.c +++ b/arch/arm/mach-imx/pm-vf610.c @@ -601,6 +601,7 @@ put_node: static int __init vf610_suspend_init(const struct vf610_pm_socdata *socdata) { int ret; + struct device_node *soc_node; #ifdef DEBUG ret = vf610_uart_init(); @@ -608,6 +609,13 @@ static int __init vf610_suspend_init(const struct vf610_pm_socdata *socdata) return ret; #endif + soc_node = of_find_node_by_path("/soc"); + if (soc_node == NULL) + return -ENODEV; + + if (of_property_read_bool(soc_node, "fsl,use-lpm-poweroff")) + pm_power_off = vf610_power_off; + if (vf610_suspend_mem_init(socdata)) { /* * Suspend to memory for some reason not available, use DDR @@ -691,8 +699,6 @@ void __init vf610_pm_init(void) if (ret) pr_warn("%s: No DDR LPM support with suspend %d!\n", __func__, ret); - - pm_power_off = vf610_power_off; } } |