ARM: imx: add i.MX7ULP cpuidle support
authorAnson Huang <anson.huang@nxp.com>
Mon, 14 Jan 2019 00:54:59 +0000 (08:54 +0800)
committerShawn Guo <shawnguo@kernel.org>
Tue, 15 Jan 2019 15:03:40 +0000 (23:03 +0800)
commit6d45a4028c8a6bc0a1e92438283ef7d4ed6ffe71
tree05f1710067648f1d2d4ed96ec0238a133cb88958
parent23b2441b90026ff56b3a4dd9af33a39730cffa21
ARM: imx: add i.MX7ULP cpuidle support

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>
arch/arm/mach-imx/Makefile
arch/arm/mach-imx/common.h
arch/arm/mach-imx/cpuidle-imx7ulp.c [new file with mode: 0644]
arch/arm/mach-imx/cpuidle.h
arch/arm/mach-imx/mach-imx7ulp.c
arch/arm/mach-imx/pm-imx7ulp.c