1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (C) 2012 Freescale Semiconductor, Inc.
6 #include <linux/cpuidle.h>
7 #include <linux/module.h>
8 #include <asm/system_misc.h>
11 static int imx5_cpuidle_enter(struct cpuidle_device *dev,
12 struct cpuidle_driver *drv, int index)
18 static struct cpuidle_driver imx5_cpuidle_driver = {
19 .name = "imx5_cpuidle",
22 .enter = imx5_cpuidle_enter,
24 .target_residency = 1,
26 .desc = "CPU state retained,powered off",
31 int __init imx5_cpuidle_init(void)
33 return cpuidle_register(&imx5_cpuidle_driver, NULL);