mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 20:07:46 +09:00
Merge remote-tracking branch 'lsk/v3.10/topic/of' into linux-linaro-lsk
This commit is contained in:
@@ -2084,6 +2084,12 @@ struct clk *of_clk_get_from_provider(struct of_phandle_args *clkspec)
|
||||
return clk;
|
||||
}
|
||||
|
||||
int of_clk_get_parent_count(struct device_node *np)
|
||||
{
|
||||
return of_count_phandle_with_args(np, "clocks", "#clock-cells");
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(of_clk_get_parent_count);
|
||||
|
||||
const char *of_clk_get_parent_name(struct device_node *np, int index)
|
||||
{
|
||||
struct of_phandle_args clkspec;
|
||||
|
||||
@@ -435,6 +435,7 @@ struct clk_onecell_data {
|
||||
unsigned int clk_num;
|
||||
};
|
||||
struct clk *of_clk_src_onecell_get(struct of_phandle_args *clkspec, void *data);
|
||||
int of_clk_get_parent_count(struct device_node *np);
|
||||
const char *of_clk_get_parent_name(struct device_node *np, int index);
|
||||
|
||||
void of_clk_init(const struct of_device_id *matches);
|
||||
|
||||
Reference in New Issue
Block a user