Loading...
1/* SPDX-License-Identifier: GPL-2.0-or-later */
2/*
3 * Copyright 2012 Freescale Semiconductor, Inc.
4 * Copyright 2012 Linaro Ltd.
5 */
6
7#ifdef CONFIG_CPU_IDLE
8extern int imx5_cpuidle_init(void);
9extern int imx6q_cpuidle_init(void);
10extern int imx6sl_cpuidle_init(void);
11extern int imx6sx_cpuidle_init(void);
12extern int imx7ulp_cpuidle_init(void);
13#else
14static inline int imx5_cpuidle_init(void)
15{
16 return 0;
17}
18static inline int imx6q_cpuidle_init(void)
19{
20 return 0;
21}
22static inline int imx6sl_cpuidle_init(void)
23{
24 return 0;
25}
26static inline int imx6sx_cpuidle_init(void)
27{
28 return 0;
29}
30static inline int imx7ulp_cpuidle_init(void)
31{
32 return 0;
33}
34#endif
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
13#ifdef CONFIG_CPU_IDLE
14extern int imx5_cpuidle_init(void);
15extern int imx6q_cpuidle_init(void);
16extern int imx6sl_cpuidle_init(void);
17extern int imx6sx_cpuidle_init(void);
18#else
19static inline int imx5_cpuidle_init(void)
20{
21 return 0;
22}
23static inline int imx6q_cpuidle_init(void)
24{
25 return 0;
26}
27static inline int imx6sl_cpuidle_init(void)
28{
29 return 0;
30}
31static inline int imx6sx_cpuidle_init(void)
32{
33 return 0;
34}
35#endif