[v3] clk: qoriq: Add support for the FMan clock

2015-04-14 Thread Igal . Liberman
From: Igal Liberman igal.liber...@freescale.com This patch depends on the following patches: https://patchwork.ozlabs.org/patch/461151/ https://patchwork.ozlabs.org/patch/461155/ This patche is described by the following binding document update:

Re: [v3] clk: qoriq: Add support for the FMan clock

2015-04-14 Thread Scott Wood
On Tue, 2015-04-14 at 14:15 +0300, Igal.Liberman wrote: +static int get_fm_clk_idx(int fm_id, int *fm_clk_idx) +{ + struct ccsr_guts __iomem *guts_regs = NULL; + struct device_node *guts; + uint32_t reg = 0; + int clk_src = 0; + + guts = of_find_matching_node(NULL,