blob: f9140128ba05189c125b2ff788960b3c74e473e7 [file] [log] [blame]
Robert Lee2da50e62012-05-21 17:50:28 -05001/*
2 * Copyright 2012 Freescale Semiconductor, Inc.
3 * Copyright 2012 Linaro Ltd.
4 *
5 * The code contained herein is licensed under the GNU General Public
6 * License. You may obtain a copy of the GNU General Public License
7 * Version 2 or later at the following locations:
8 *
9 * http://www.opensource.org/licenses/gpl-license.html
10 * http://www.gnu.org/copyleft/gpl.html
11 */
12
Robert Lee2da50e62012-05-21 17:50:28 -050013#ifdef CONFIG_CPU_IDLE
Daniel Lezcano54a46442013-04-23 08:54:45 +000014extern int imx5_cpuidle_init(void);
Shawn Guo12bb34402012-12-04 22:55:14 +080015extern int imx6q_cpuidle_init(void);
Anson Huang751f7e92014-01-09 16:03:16 +080016extern int imx6sl_cpuidle_init(void);
Anson Huang05136f02014-12-17 12:24:12 +080017extern int imx6sx_cpuidle_init(void);
Robert Lee2da50e62012-05-21 17:50:28 -050018#else
Daniel Lezcano54a46442013-04-23 08:54:45 +000019static inline int imx5_cpuidle_init(void)
Robert Lee2da50e62012-05-21 17:50:28 -050020{
Daniel Lezcano54a46442013-04-23 08:54:45 +000021 return 0;
Robert Lee2da50e62012-05-21 17:50:28 -050022}
Shawn Guo12bb34402012-12-04 22:55:14 +080023static inline int imx6q_cpuidle_init(void)
24{
Daniel Lezcano54a46442013-04-23 08:54:45 +000025 return 0;
Shawn Guo12bb34402012-12-04 22:55:14 +080026}
Anson Huang751f7e92014-01-09 16:03:16 +080027static inline int imx6sl_cpuidle_init(void)
28{
29 return 0;
30}
Anson Huang05136f02014-12-17 12:24:12 +080031static inline int imx6sx_cpuidle_init(void)
32{
33 return 0;
34}
Robert Lee2da50e62012-05-21 17:50:28 -050035#endif