diff options
author | Hou Zhiqiang <Zhiqiang.Hou@nxp.com> | 2024-08-01 11:59:50 +0800 |
---|---|---|
committer | Fabio Estevam <festevam@gmail.com> | 2024-08-02 15:16:51 -0300 |
commit | dc86c11556c194a6a0beda82ee96549ad66d0aec (patch) | |
tree | 97936d00136eaf0f49ece608caa3cfb6689499cf /drivers/cpu | |
parent | 8b8217249fc561021512c28b7b259e6493907dd6 (diff) | |
download | u-boot-dc86c11556c194a6a0beda82ee96549ad66d0aec.tar.gz |
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>
Diffstat (limited to 'drivers/cpu')
-rw-r--r-- | drivers/cpu/imx8_cpu.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/cpu/imx8_cpu.c b/drivers/cpu/imx8_cpu.c index 4781a565547..601a7071a64 100644 --- a/drivers/cpu/imx8_cpu.c +++ b/drivers/cpu/imx8_cpu.c @@ -1,6 +1,6 @@ // SPDX-License-Identifier: GPL-2.0+ /* - * Copyright 2019 NXP + * Copyright 2019, 2024 NXP */ #include <cpu.h> @@ -193,7 +193,7 @@ static int cpu_imx_get_info(const struct udevice *dev, struct cpu_info *info) { struct cpu_imx_plat *plat = dev_get_plat(dev); - info->cpu_freq = plat->freq_mhz * 1000; + info->cpu_freq = plat->freq_mhz * 1000000; info->features = BIT(CPU_FEAT_L1_CACHE) | BIT(CPU_FEAT_MMU); return 0; } |