diff options
author | Peng Fan <peng.fan@nxp.com> | 2020-01-17 16:11:29 +0800 |
---|---|---|
committer | Stefano Babic <sbabic@denx.de> | 2020-05-01 13:46:21 +0200 |
commit | 354dcce68250731a03d2806419b1ca20957eb48f (patch) | |
tree | c5207c0eae0f884cbe6d67df161bc58449f068fd /arch/arm | |
parent | 47586a4a55e39508bb29c1f2feb5a3b048dd0351 (diff) | |
download | u-boot-354dcce68250731a03d2806419b1ca20957eb48f.zip u-boot-354dcce68250731a03d2806419b1ca20957eb48f.tar.gz u-boot-354dcce68250731a03d2806419b1ca20957eb48f.tar.bz2 |
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')
-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 5b979cc..8217913 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; } |