aboutsummaryrefslogtreecommitdiff
path: root/arch/arm/mach-imx/cpu.c
diff options
context:
space:
mode:
authorPeng Fan2020-01-17 16:11:29 +0800
committerStefano Babic2020-05-01 13:46:21 +0200
commit354dcce68250731a03d2806419b1ca20957eb48f (patch)
treec5207c0eae0f884cbe6d67df161bc58449f068fd /arch/arm/mach-imx/cpu.c
parent47586a4a55e39508bb29c1f2feb5a3b048dd0351 (diff)
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>
Diffstat (limited to 'arch/arm/mach-imx/cpu.c')
-rw-r--r--arch/arm/mach-imx/cpu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-imx/cpu.c b/arch/arm/mach-imx/cpu.c
index 5b979cc1f58..8217913b4a4 100644
--- a/arch/arm/mach-imx/cpu.c
+++ b/arch/arm/mach-imx/cpu.c
@@ -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;
}