commit | 8f99438b095aaf9b6472a21e2f087483439826da | [log] [tgz] |
---|---|---|
author | Peng Fan <peng.fan@nxp.com> | Mon Aug 26 08:11:49 2019 +0000 |
committer | Stefano Babic <sbabic@denx.de> | Tue Oct 08 16:35:59 2019 +0200 |
tree | 32b231d04de29504aab67142cca902ec95f9e411 | |
parent | b5fd5fd5a4d770d6ea39a69355c95c4acabb7cac [diff] [blame] |
imx8qm: power up SMMU There is SMMU in i.MX8QM. To use SMMU in Linux, need power up it. Signed-off-by: Peng Fan <peng.fan@nxp.com>
diff --git a/arch/arm/mach-imx/imx8/cpu.c b/arch/arm/mach-imx/imx8/cpu.c index 667f829..1a5d811 100644 --- a/arch/arm/mach-imx/imx8/cpu.c +++ b/arch/arm/mach-imx/imx8/cpu.c
@@ -67,6 +67,13 @@ return ret; } + if (is_imx8qm()) { + ret = sc_pm_set_resource_power_mode(-1, SC_R_SMMU, + SC_PM_PW_MODE_ON); + if (ret) + return ret; + } + return 0; }