| * Copyright 2011 Freescale Semiconductor, Inc. |
| * Copyright 2011 Linaro Ltd. |
| * The code contained herein is licensed under the GNU General Public |
| * License. You may obtain a copy of the GNU General Public License |
| * Version 2 or later at the following locations: |
| * http://www.opensource.org/licenses/gpl-license.html |
| * http://www.gnu.org/copyleft/gpl.html |
| #include <linux/suspend.h> |
| #include <asm/cacheflush.h> |
| #include <asm/proc-fns.h> |
| #include <asm/hardware/cache-l2x0.h> |
| static int imx6q_suspend_finish(unsigned long val) |
| static int imx6q_pm_enter(suspend_state_t state) |
| imx6q_set_lpm(STOP_POWER_OFF); |
| imx_set_cpu_jump(0, v7_cpu_resume); |
| cpu_suspend(0, imx6q_suspend_finish); |
| imx6q_set_lpm(WAIT_CLOCKED); |
| static const struct platform_suspend_ops imx6q_pm_ops = { |
| .valid = suspend_valid_only_mem, |
| void __init imx6q_pm_init(void) |
| suspend_set_ops(&imx6q_pm_ops); |