ACPI / LPSS: Make acpi_lpss_find_device() also find PCI devices
[linux/fpc-iii.git] / arch / arm / mach-imx / cpuidle-imx5.c
blobdb0127606aedac65f61cbcf9e326cebfdeca7964
1 /*
2 * Copyright (C) 2012 Freescale Semiconductor, Inc.
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2 as
6 * published by the Free Software Foundation.
7 */
9 #include <linux/cpuidle.h>
10 #include <linux/module.h>
11 #include <asm/system_misc.h>
12 #include "cpuidle.h"
14 static int imx5_cpuidle_enter(struct cpuidle_device *dev,
15 struct cpuidle_driver *drv, int index)
17 arm_pm_idle();
18 return index;
21 static struct cpuidle_driver imx5_cpuidle_driver = {
22 .name = "imx5_cpuidle",
23 .owner = THIS_MODULE,
24 .states[0] = {
25 .enter = imx5_cpuidle_enter,
26 .exit_latency = 2,
27 .target_residency = 1,
28 .name = "IMX5 SRPG",
29 .desc = "CPU state retained,powered off",
31 .state_count = 1,
34 int __init imx5_cpuidle_init(void)
36 return cpuidle_register(&imx5_cpuidle_driver, NULL);