blob: ce552c096cae143671f76d03c5257ab02f0b7bb3 [file] [log] [blame]
Thomas Gleixnerfcaf2032019-05-27 08:55:08 +02001/* SPDX-License-Identifier: GPL-2.0-or-later */
Robert Lee2da50e62012-05-21 17:50:28 -05002/*
3 * Copyright 2012 Freescale Semiconductor, Inc.
4 * Copyright 2012 Linaro Ltd.
Robert Lee2da50e62012-05-21 17:50:28 -05005 */
6
Robert Lee2da50e62012-05-21 17:50:28 -05007#ifdef CONFIG_CPU_IDLE
Daniel Lezcano54a46442013-04-23 08:54:45 +00008extern int imx5_cpuidle_init(void);
Shawn Guo12bb34402012-12-04 22:55:14 +08009extern int imx6q_cpuidle_init(void);
Anson Huang751f7e92014-01-09 16:03:16 +080010extern int imx6sl_cpuidle_init(void);
Anson Huang05136f02014-12-17 12:24:12 +080011extern int imx6sx_cpuidle_init(void);
Anson Huang6d45a402019-01-14 08:54:59 +080012extern int imx7ulp_cpuidle_init(void);
Robert Lee2da50e62012-05-21 17:50:28 -050013#else
Daniel Lezcano54a46442013-04-23 08:54:45 +000014static inline int imx5_cpuidle_init(void)
Robert Lee2da50e62012-05-21 17:50:28 -050015{
Daniel Lezcano54a46442013-04-23 08:54:45 +000016 return 0;
Robert Lee2da50e62012-05-21 17:50:28 -050017}
Shawn Guo12bb34402012-12-04 22:55:14 +080018static inline int imx6q_cpuidle_init(void)
19{
Daniel Lezcano54a46442013-04-23 08:54:45 +000020 return 0;
Shawn Guo12bb34402012-12-04 22:55:14 +080021}
Anson Huang751f7e92014-01-09 16:03:16 +080022static inline int imx6sl_cpuidle_init(void)
23{
24 return 0;
25}
Anson Huang05136f02014-12-17 12:24:12 +080026static inline int imx6sx_cpuidle_init(void)
27{
28 return 0;
29}
Anson Huang6d45a402019-01-14 08:54:59 +080030static inline int imx7ulp_cpuidle_init(void)
31{
32 return 0;
33}
Robert Lee2da50e62012-05-21 17:50:28 -050034#endif