imx: cpu: support speed grade for i.MX8MP

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>
This commit is contained in:
Peng Fan 2020-01-17 16:11:29 +08:00 committed by Stefano Babic
parent 47586a4a55
commit 354dcce682

View 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;
}