Shawn Guo | 12bb3440 | 2012-12-04 22:55:14 +0800 | [diff] [blame^] | 1 | /* |
| 2 | * Copyright (C) 2012 Freescale Semiconductor, Inc. |
| 3 | * |
| 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 | */ |
| 8 | |
| 9 | #include <linux/cpuidle.h> |
| 10 | #include <linux/module.h> |
| 11 | #include <asm/cpuidle.h> |
| 12 | |
| 13 | #include "cpuidle.h" |
| 14 | |
| 15 | static struct cpuidle_driver imx6q_cpuidle_driver = { |
| 16 | .name = "imx6q_cpuidle", |
| 17 | .owner = THIS_MODULE, |
| 18 | .en_core_tk_irqen = 1, |
| 19 | .states[0] = ARM_CPUIDLE_WFI_STATE, |
| 20 | .state_count = 1, |
| 21 | }; |
| 22 | |
| 23 | int __init imx6q_cpuidle_init(void) |
| 24 | { |
| 25 | return imx_cpuidle_init(&imx6q_cpuidle_driver); |
| 26 | } |