]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
imx: cpu: support speed grade for i.MX8MP
authorPeng Fan <peng.fan@nxp.com>
Fri, 17 Jan 2020 08:11:29 +0000 (16:11 +0800)
committerStefano Babic <sbabic@denx.de>
Fri, 1 May 2020 11:46:21 +0000 (13:46 +0200)
i.MX8MP speed grade use same layout as i.MX8MN, so reuse it for i.MX8MP

Reviewed-by: Ye Li <ye.li@nxp.com>
Reviewed-by: Fabio Estevam <festevam@gmail.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
arch/arm/mach-imx/cpu.c

index 5b979cc1f58b2860f3d1f1c63beecbf93e00bfb4..8217913b4a486c0c2b10678ddea38f2e976919e2 100644 (file)
@@ -328,7 +328,7 @@ u32 get_cpu_speed_grade_hz(void)
        val = readl(&fuse->tester3);
        val >>= OCOTP_TESTER3_SPEED_SHIFT;
 
-       if (is_imx8mn()) {
+       if (is_imx8mn() || is_imx8mp()) {
                val &= 0xf;
                return 2300000000 - val * 100000000;
        }