Thomas Gleixner | fcaf203 | 2019-05-27 08:55:08 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-or-later */ |
Robert Lee | 2da50e6 | 2012-05-21 17:50:28 -0500 | [diff] [blame] | 2 | /* |
3 | * Copyright 2012 Freescale Semiconductor, Inc. | ||||
4 | * Copyright 2012 Linaro Ltd. | ||||
Robert Lee | 2da50e6 | 2012-05-21 17:50:28 -0500 | [diff] [blame] | 5 | */ |
6 | |||||
Robert Lee | 2da50e6 | 2012-05-21 17:50:28 -0500 | [diff] [blame] | 7 | #ifdef CONFIG_CPU_IDLE |
Daniel Lezcano | 54a4644 | 2013-04-23 08:54:45 +0000 | [diff] [blame] | 8 | extern int imx5_cpuidle_init(void); |
Shawn Guo | 12bb3440 | 2012-12-04 22:55:14 +0800 | [diff] [blame] | 9 | extern int imx6q_cpuidle_init(void); |
Anson Huang | 751f7e9 | 2014-01-09 16:03:16 +0800 | [diff] [blame] | 10 | extern int imx6sl_cpuidle_init(void); |
Anson Huang | 05136f0 | 2014-12-17 12:24:12 +0800 | [diff] [blame] | 11 | extern int imx6sx_cpuidle_init(void); |
Anson Huang | 6d45a40 | 2019-01-14 08:54:59 +0800 | [diff] [blame] | 12 | extern int imx7ulp_cpuidle_init(void); |
Robert Lee | 2da50e6 | 2012-05-21 17:50:28 -0500 | [diff] [blame] | 13 | #else |
Daniel Lezcano | 54a4644 | 2013-04-23 08:54:45 +0000 | [diff] [blame] | 14 | static inline int imx5_cpuidle_init(void) |
Robert Lee | 2da50e6 | 2012-05-21 17:50:28 -0500 | [diff] [blame] | 15 | { |
Daniel Lezcano | 54a4644 | 2013-04-23 08:54:45 +0000 | [diff] [blame] | 16 | return 0; |
Robert Lee | 2da50e6 | 2012-05-21 17:50:28 -0500 | [diff] [blame] | 17 | } |
Shawn Guo | 12bb3440 | 2012-12-04 22:55:14 +0800 | [diff] [blame] | 18 | static inline int imx6q_cpuidle_init(void) |
19 | { | ||||
Daniel Lezcano | 54a4644 | 2013-04-23 08:54:45 +0000 | [diff] [blame] | 20 | return 0; |
Shawn Guo | 12bb3440 | 2012-12-04 22:55:14 +0800 | [diff] [blame] | 21 | } |
Anson Huang | 751f7e9 | 2014-01-09 16:03:16 +0800 | [diff] [blame] | 22 | static inline int imx6sl_cpuidle_init(void) |
23 | { | ||||
24 | return 0; | ||||
25 | } | ||||
Anson Huang | 05136f0 | 2014-12-17 12:24:12 +0800 | [diff] [blame] | 26 | static inline int imx6sx_cpuidle_init(void) |
27 | { | ||||
28 | return 0; | ||||
29 | } | ||||
Anson Huang | 6d45a40 | 2019-01-14 08:54:59 +0800 | [diff] [blame] | 30 | static inline int imx7ulp_cpuidle_init(void) |
31 | { | ||||
32 | return 0; | ||||
33 | } | ||||
Robert Lee | 2da50e6 | 2012-05-21 17:50:28 -0500 | [diff] [blame] | 34 | #endif |