clk: rockchip: rk3588: fix 32-bit compile warning

"warn: should 'fout_hz << s' be a 64 bit type?"

Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: I3b842974c2c1709878702c35963df74acd7f4d2f
This commit is contained in:
Joseph Chen
2022-06-01 10:28:10 +00:00
committed by Tao Huang
parent aa41f82fc5
commit b4fa954b4c

View File

@@ -351,7 +351,7 @@ rockchip_rk3588_pll_clk_set_by_auto(struct rockchip_clk_pll *pll,
if (fin_hz / MHZ * MHZ == fin_hz && fout_hz / MHZ * MHZ == fout_hz) {
for (s = 0; s <= 6; s++) {
fvco = fout_hz << s;
fvco = (u64)fout_hz << s;
if (fvco < fvco_min || fvco > fvco_max)
continue;
for (p = 2; p <= 4; p++) {
@@ -369,7 +369,7 @@ rockchip_rk3588_pll_clk_set_by_auto(struct rockchip_clk_pll *pll,
pr_err("CANNOT FIND Fout by auto,fout = %lu\n", fout_hz);
} else {
for (s = 0; s <= 6; s++) {
fvco = fout_hz << s;
fvco = (u64)fout_hz << s;
if (fvco < fvco_min || fvco > fvco_max)
continue;
for (p = 1; p <= 4; p++) {