Skip to content

Commit dc86c11

Browse files
Zhiqiang-Houfabioestevam
authored andcommitted
cpu: imx: fix the CPU frequency in cpu_imx_get_info()
The cpu_freq stores the current CPU frequency in Hz. Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou@nxp.com> Reviewed-by: Michael Trimarchi <michael@amarulasolutions.com>
1 parent 8b82172 commit dc86c11

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

drivers/cpu/imx8_cpu.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// SPDX-License-Identifier: GPL-2.0+
22
/*
3-
* Copyright 2019 NXP
3+
* Copyright 2019, 2024 NXP
44
*/
55

66
#include <cpu.h>
@@ -193,7 +193,7 @@ static int cpu_imx_get_info(const struct udevice *dev, struct cpu_info *info)
193193
{
194194
struct cpu_imx_plat *plat = dev_get_plat(dev);
195195

196-
info->cpu_freq = plat->freq_mhz * 1000;
196+
info->cpu_freq = plat->freq_mhz * 1000000;
197197
info->features = BIT(CPU_FEAT_L1_CACHE) | BIT(CPU_FEAT_MMU);
198198
return 0;
199199
}

0 commit comments

Comments
 (0)