mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-23 09:56:16 +07:00
6d45a4028c
This patch adds cpuidle support for i.MX7ULP, 3 cpuidle states supported as below: 1. WFI, just ARM wfi; 2. WAIT mode, mapped to SoC's partial stop mode #3; 3. STOP mode, mapped to SoC's partial stop mode #1. In WAIT mode, system clock and bus clock will be enabled; In STOP mode, system clock and bus clock will be disabled. Signed-off-by: Anson Huang <Anson.Huang@nxp.com> Signed-off-by: Shawn Guo <shawnguo@kernel.org>
41 lines
892 B
C
41 lines
892 B
C
/*
|
|
* Copyright 2012 Freescale Semiconductor, Inc.
|
|
* Copyright 2012 Linaro Ltd.
|
|
*
|
|
* The code contained herein is licensed under the GNU General Public
|
|
* License. You may obtain a copy of the GNU General Public License
|
|
* Version 2 or later at the following locations:
|
|
*
|
|
* http://www.opensource.org/licenses/gpl-license.html
|
|
* http://www.gnu.org/copyleft/gpl.html
|
|
*/
|
|
|
|
#ifdef CONFIG_CPU_IDLE
|
|
extern int imx5_cpuidle_init(void);
|
|
extern int imx6q_cpuidle_init(void);
|
|
extern int imx6sl_cpuidle_init(void);
|
|
extern int imx6sx_cpuidle_init(void);
|
|
extern int imx7ulp_cpuidle_init(void);
|
|
#else
|
|
static inline int imx5_cpuidle_init(void)
|
|
{
|
|
return 0;
|
|
}
|
|
static inline int imx6q_cpuidle_init(void)
|
|
{
|
|
return 0;
|
|
}
|
|
static inline int imx6sl_cpuidle_init(void)
|
|
{
|
|
return 0;
|
|
}
|
|
static inline int imx6sx_cpuidle_init(void)
|
|
{
|
|
return 0;
|
|
}
|
|
static inline int imx7ulp_cpuidle_init(void)
|
|
{
|
|
return 0;
|
|
}
|
|
#endif
|