mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-24 21:54:01 +00:00
ARC: HSDK: CGU: Add 'Hz' when printing clock frequency
Add 'Hz' when printing clock frequency in error messages. Signed-off-by: Eugeniy Paltsev <Eugeniy.Paltsev@synopsys.com> Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
This commit is contained in:
parent
f6d7812d8d
commit
320c8a1a86
1 changed files with 3 additions and 3 deletions
|
@ -492,7 +492,7 @@ static ulong pll_set(struct clk *sclk, ulong rate)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pr_err("invalid rate=%ld, parent_rate=%d\n", best_rate, PARENT_RATE);
|
pr_err("invalid rate=%ld Hz, parent_rate=%d Hz\n", best_rate, PARENT_RATE);
|
||||||
|
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
|
@ -623,14 +623,14 @@ static ulong idiv_set(struct clk *sclk, ulong rate)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (div_factor & ~CGU_IDIV_MASK) {
|
if (div_factor & ~CGU_IDIV_MASK) {
|
||||||
pr_err("invalid rate=%ld, parent_rate=%ld, div=%d: max divider valie is%d\n",
|
pr_err("invalid rate=%ld Hz, parent_rate=%ld Hz, div=%d: max divider valie is%d\n",
|
||||||
rate, parent_rate, div_factor, CGU_IDIV_MASK);
|
rate, parent_rate, div_factor, CGU_IDIV_MASK);
|
||||||
|
|
||||||
div_factor = CGU_IDIV_MASK;
|
div_factor = CGU_IDIV_MASK;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (div_factor == 0) {
|
if (div_factor == 0) {
|
||||||
pr_err("invalid rate=%ld, parent_rate=%ld, div=%d: min divider valie is 1\n",
|
pr_err("invalid rate=%ld Hz, parent_rate=%ld Hz, div=%d: min divider valie is 1\n",
|
||||||
rate, parent_rate, div_factor);
|
rate, parent_rate, div_factor);
|
||||||
|
|
||||||
div_factor = 1;
|
div_factor = 1;
|
||||||
|
|
Loading…
Reference in a new issue