Commit 49159a9d authored by Tero Kristo's avatar Tero Kristo

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: default avatarTero Kristo <t-kristo@ti.com>
Reported-by: default avatarJyri Sarha <jsarha@ti.com>
Acked-by: default avatarTony Lindgren <tony@atomide.com>
Tested-by: default avatarJyri Sarha <jsarha@ti.com>
parent 7928b2cb
...@@ -537,6 +537,8 @@ static void __init _ti_omap4_clkctrl_setup(struct device_node *node) ...@@ -537,6 +537,8 @@ static void __init _ti_omap4_clkctrl_setup(struct device_node *node)
init.parent_names = &reg_data->parent; init.parent_names = &reg_data->parent;
init.num_parents = 1; init.num_parents = 1;
init.flags = 0; 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", init.name = kasprintf(GFP_KERNEL, "%s:%s:%04x:%d",
node->parent->name, node->name, node->parent->name, node->name,
reg_data->offset, 0); reg_data->offset, 0);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment