[U-Boot] [PATCH 03/13] imx8qm: power up SMMU
Peng Fan
peng.fan at nxp.com
Mon Aug 26 08:11:49 UTC 2019
There is SMMU in i.MX8QM. To use SMMU in Linux, need power up it.
Signed-off-by: Peng Fan <peng.fan at nxp.com>
---
arch/arm/mach-imx/imx8/cpu.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/arch/arm/mach-imx/imx8/cpu.c b/arch/arm/mach-imx/imx8/cpu.c
index 667f829acd..1a5d811373 100644
--- a/arch/arm/mach-imx/imx8/cpu.c
+++ b/arch/arm/mach-imx/imx8/cpu.c
@@ -67,6 +67,13 @@ int arch_cpu_init_dm(void)
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;
}
--
2.16.4
More information about the U-Boot
mailing list