diff options
| author | Tero Kristo <t-kristo@ti.com> | 2018-02-23 07:28:21 -0500 |
|---|---|---|
| committer | Tero Kristo <t-kristo@ti.com> | 2018-03-08 05:14:43 -0500 |
| commit | 49159a9dc3da83f17be00acbc7b2ab84ffec1aa7 (patch) | |
| tree | 9807f135b8a7c61c9a88dc2f073791a07c37f2e8 | |
| parent | 7928b2cbe55b2a410a0f5c1f154610059c57b1b2 (diff) | |
clk: ti: clkctrl: add support for CLK_SET_RATE_PARENT flag
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 <t-kristo@ti.com>
Reported-by: Jyri Sarha <jsarha@ti.com>
Acked-by: Tony Lindgren <tony@atomide.com>
Tested-by: Jyri Sarha <jsarha@ti.com>
| -rw-r--r-- | drivers/clk/ti/clkctrl.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/clk/ti/clkctrl.c b/drivers/clk/ti/clkctrl.c index afa0d6bfc5c1..421b05392220 100644 --- 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) | |||
| 537 | init.parent_names = ®_data->parent; | 537 | init.parent_names = ®_data->parent; |
| 538 | init.num_parents = 1; | 538 | init.num_parents = 1; |
| 539 | init.flags = 0; | 539 | init.flags = 0; |
| 540 | if (reg_data->flags & CLKF_SET_RATE_PARENT) | ||
| 541 | init.flags |= CLK_SET_RATE_PARENT; | ||
| 540 | init.name = kasprintf(GFP_KERNEL, "%s:%s:%04x:%d", | 542 | init.name = kasprintf(GFP_KERNEL, "%s:%s:%04x:%d", |
| 541 | node->parent->name, node->name, | 543 | node->parent->name, node->name, |
| 542 | reg_data->offset, 0); | 544 | reg_data->offset, 0); |
