mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-26 06:30:39 +00:00
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:
parent
47586a4a55
commit
354dcce682
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue