projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f1a788f
)
clk: st: Use round to closest divider flag
author
Gabriel FERNANDEZ
<
[email protected]
>
Tue, 15 Jul 2014 15:20:31 +0000
(17:20 +0200)
committer
Mike Turquette
<
[email protected]
>
Tue, 29 Jul 2014 05:37:16 +0000
(22:37 -0700)
This patch uses CLK_DIVIDER_ROUND_CLOSEST flag to specify
the divider has to round to closest div.
Signed-off-by: Gabriel Fernandez <
[email protected]
>
Acked-by: Peter Griffin <
[email protected]
>
Signed-off-by: Mike Turquette <
[email protected]
>
drivers/clk/st/clkgen-mux.c
patch
|
blob
|
history
diff --git
a/drivers/clk/st/clkgen-mux.c
b/drivers/clk/st/clkgen-mux.c
index 9bdedc8ed82a1444f31a4146b400ddd387d66ce5..79dc40b5cc688fb1a028ca8407cd3feb929ca873 100644
(file)
--- a/
drivers/clk/st/clkgen-mux.c
+++ b/
drivers/clk/st/clkgen-mux.c
@@
-774,7
+774,8
@@
void __init st_of_clkgen_vcc_setup(struct device_node *np)
div->reg = reg + VCC_DIV_OFFSET;
div->shift = 2 * i;
div->width = 2;
- div->flags = CLK_DIVIDER_POWER_OF_TWO;
+ div->flags = CLK_DIVIDER_POWER_OF_TWO |
+ CLK_DIVIDER_ROUND_CLOSEST;
mux->reg = reg + VCC_MUX_OFFSET;
mux->shift = 2 * i;