diff options
author | Shawn Guo <shawn.guo@linaro.org> | 2012-12-04 18:55:14 +0400 |
---|---|---|
committer | Shawn Guo <shawn.guo@linaro.org> | 2013-01-30 17:08:42 +0400 |
commit | 12bb344074cfc50482121c76571e3cda07c4bc09 (patch) | |
tree | 7edee0ab4514e32267ae96f641040a75037924c1 /arch/arm/mach-imx/cpuidle-imx6q.c | |
parent | 485863b8fa02d515e48ce6b59f01d62172d2fe0d (diff) | |
download | linux-12bb344074cfc50482121c76571e3cda07c4bc09.tar.xz |
ARM: imx: move imx6q_cpuidle_driver into a separate file
Move imx6q_cpuidle_driver into a separate file as more codes will
be added when WAIT mode gets implemented as cpuidle.
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Diffstat (limited to 'arch/arm/mach-imx/cpuidle-imx6q.c')
-rw-r--r-- | arch/arm/mach-imx/cpuidle-imx6q.c | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/arch/arm/mach-imx/cpuidle-imx6q.c b/arch/arm/mach-imx/cpuidle-imx6q.c new file mode 100644 index 000000000000..83facc97b5da --- /dev/null +++ b/arch/arm/mach-imx/cpuidle-imx6q.c @@ -0,0 +1,26 @@ +/* + * Copyright (C) 2012 Freescale Semiconductor, Inc. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + */ + +#include <linux/cpuidle.h> +#include <linux/module.h> +#include <asm/cpuidle.h> + +#include "cpuidle.h" + +static struct cpuidle_driver imx6q_cpuidle_driver = { + .name = "imx6q_cpuidle", + .owner = THIS_MODULE, + .en_core_tk_irqen = 1, + .states[0] = ARM_CPUIDLE_WFI_STATE, + .state_count = 1, +}; + +int __init imx6q_cpuidle_init(void) +{ + return imx_cpuidle_init(&imx6q_cpuidle_driver); +} |