diff options
author | Peng Fan | 2020-01-17 16:11:29 +0800 |
---|---|---|
committer | Stefano Babic | 2020-05-01 13:46:21 +0200 |
commit | 354dcce68250731a03d2806419b1ca20957eb48f (patch) | |
tree | c5207c0eae0f884cbe6d67df161bc58449f068fd /arch/arm/mach-imx/cpu.c | |
parent | 47586a4a55e39508bb29c1f2feb5a3b048dd0351 (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.c | 2 |
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; } |