summaryrefslogtreecommitdiff
path: root/arch/mips/mach-octeon/cpu.c
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2024-08-21 10:19:15 -0600
committerTom Rini <trini@konsulko.com>2024-08-26 14:05:38 -0600
commit80166ea20baaa129b3c1dfa50ebee7ccf17ee17e (patch)
tree0e53a1787ee81b3ca042a31f5f5d47c6e67fb52b /arch/mips/mach-octeon/cpu.c
parentcd4f9eb514223dded348e90c81f19d1a9c9e03ce (diff)
global_data: Reduce the size of bus_clk and mem_clk
The bus clock and memory clock are unlikely to go above 4GHz for now, so reduce the field size to 32 bits. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch/mips/mach-octeon/cpu.c')
-rw-r--r--arch/mips/mach-octeon/cpu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/mips/mach-octeon/cpu.c b/arch/mips/mach-octeon/cpu.c
index c7744e84706..c771da61a68 100644
--- a/arch/mips/mach-octeon/cpu.c
+++ b/arch/mips/mach-octeon/cpu.c
@@ -67,7 +67,7 @@ static int get_clocks(void)
gd->cpu_clk = ref_clock * FIELD_GET(RST_BOOT_C_MUL, val);
gd->bus_clk = ref_clock * FIELD_GET(RST_BOOT_PNR_MUL, val);
- debug("%s: cpu: %lu, bus: %lu\n", __func__, gd->cpu_clk, gd->bus_clk);
+ debug("%s: cpu: %lu, bus: %u\n", __func__, gd->cpu_clk, gd->bus_clk);
return 0;
}