Robert Lee | 2da50e6 | 2012-05-21 17:50:28 -0500 | [diff] [blame] | 1 | /* |
| 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 Lee | 2da50e6 | 2012-05-21 17:50:28 -0500 | [diff] [blame] | 13 | #ifdef CONFIG_CPU_IDLE |
Daniel Lezcano | 54a4644 | 2013-04-23 08:54:45 +0000 | [diff] [blame] | 14 | extern int imx5_cpuidle_init(void); |
Shawn Guo | 12bb3440 | 2012-12-04 22:55:14 +0800 | [diff] [blame] | 15 | extern int imx6q_cpuidle_init(void); |
Anson Huang | 751f7e9 | 2014-01-09 16:03:16 +0800 | [diff] [blame] | 16 | extern int imx6sl_cpuidle_init(void); |
Anson Huang | 05136f0 | 2014-12-17 12:24:12 +0800 | [diff] [blame] | 17 | extern int imx6sx_cpuidle_init(void); |
Robert Lee | 2da50e6 | 2012-05-21 17:50:28 -0500 | [diff] [blame] | 18 | #else |
Daniel Lezcano | 54a4644 | 2013-04-23 08:54:45 +0000 | [diff] [blame] | 19 | static inline int imx5_cpuidle_init(void) |
Robert Lee | 2da50e6 | 2012-05-21 17:50:28 -0500 | [diff] [blame] | 20 | { |
Daniel Lezcano | 54a4644 | 2013-04-23 08:54:45 +0000 | [diff] [blame] | 21 | return 0; |
Robert Lee | 2da50e6 | 2012-05-21 17:50:28 -0500 | [diff] [blame] | 22 | } |
Shawn Guo | 12bb3440 | 2012-12-04 22:55:14 +0800 | [diff] [blame] | 23 | static inline int imx6q_cpuidle_init(void) |
| 24 | { |
Daniel Lezcano | 54a4644 | 2013-04-23 08:54:45 +0000 | [diff] [blame] | 25 | return 0; |
Shawn Guo | 12bb3440 | 2012-12-04 22:55:14 +0800 | [diff] [blame] | 26 | } |
Anson Huang | 751f7e9 | 2014-01-09 16:03:16 +0800 | [diff] [blame] | 27 | static inline int imx6sl_cpuidle_init(void) |
| 28 | { |
| 29 | return 0; |
| 30 | } |
Anson Huang | 05136f0 | 2014-12-17 12:24:12 +0800 | [diff] [blame] | 31 | static inline int imx6sx_cpuidle_init(void) |
| 32 | { |
| 33 | return 0; |
| 34 | } |
Robert Lee | 2da50e6 | 2012-05-21 17:50:28 -0500 | [diff] [blame] | 35 | #endif |