summaryrefslogtreecommitdiff
path: root/src/soc/cavium
diff options
context:
space:
mode:
Diffstat (limited to 'src/soc/cavium')
-rw-r--r--src/soc/cavium/cn81xx/clock.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/soc/cavium/cn81xx/clock.c b/src/soc/cavium/cn81xx/clock.c
index bd6514cd41..02f152f223 100644
--- a/src/soc/cavium/cn81xx/clock.c
+++ b/src/soc/cavium/cn81xx/clock.c
@@ -63,7 +63,7 @@ u64 thunderx_get_io_clock(void)
rst_boot.u = read64((void *)RST_PF_BAR0);
- return rst_boot.s.pnr_mul * PLL_REF_CLK;
+ return ((u64)rst_boot.s.pnr_mul) * PLL_REF_CLK;
}
/**
@@ -75,5 +75,5 @@ u64 thunderx_get_core_clock(void)
rst_boot.u = read64((void *)RST_PF_BAR0);
- return rst_boot.s.c_mul * PLL_REF_CLK;
+ return ((u64)rst_boot.s.c_mul) * PLL_REF_CLK;
}