imx8qm: power up SMMU
authorPeng Fan <peng.fan@nxp.com>
Mon, 26 Aug 2019 08:11:49 +0000 (08:11 +0000)
committerStefano Babic <sbabic@denx.de>
Tue, 8 Oct 2019 14:35:59 +0000 (16:35 +0200)
There is SMMU in i.MX8QM. To use SMMU in Linux, need power up it.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
arch/arm/mach-imx/imx8/cpu.c

index 667f829acd595d0194e164df23cfe0f767026672..1a5d811373232d544789e90af5fa919b751109fd 100644 (file)
@@ -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;
 }