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:
7928b2c
)
clk: ti: clkctrl: add support for CLK_SET_RATE_PARENT flag
author
Tero Kristo
<
[email protected]
>
Fri, 23 Feb 2018 12:28:21 +0000
(14:28 +0200)
committer
Tero Kristo
<
[email protected]
>
Thu, 8 Mar 2018 10:14:43 +0000
(12:14 +0200)
Certain clkctrl clocks, notably the display ones, use the
CLK_SET_RATE_PARENT feature extensively. Add support for this flag
to the clkctrl clocks.
Signed-off-by: Tero Kristo <
[email protected]
>
Reported-by: Jyri Sarha <
[email protected]
>
Acked-by: Tony Lindgren <
[email protected]
>
Tested-by: Jyri Sarha <
[email protected]
>
drivers/clk/ti/clkctrl.c
patch
|
blob
|
history
diff --git
a/drivers/clk/ti/clkctrl.c
b/drivers/clk/ti/clkctrl.c
index afa0d6bfc5c15643a3dd2e765aa1b29048744d90..421b0539222058354d94ae6c29347d03b02ddd93 100644
(file)
--- a/
drivers/clk/ti/clkctrl.c
+++ b/
drivers/clk/ti/clkctrl.c
@@
-537,6
+537,8
@@
static void __init _ti_omap4_clkctrl_setup(struct device_node *node)
init.parent_names = ®_data->parent;
init.num_parents = 1;
init.flags = 0;
+ if (reg_data->flags & CLKF_SET_RATE_PARENT)
+ init.flags |= CLK_SET_RATE_PARENT;
init.name = kasprintf(GFP_KERNEL, "%s:%s:%04x:%d",
node->parent->name, node->name,
reg_data->offset, 0);