Re: [PATCH v4 03/15] clk: tegra: common periph_clk_enb_refcnt and clks

2013-10-18 Thread Peter De Schrijver
On Fri, Oct 18, 2013 at 12:26:20AM +0200, Andrew Bresticker wrote: > Hi Peter, > > > static void __init tegra30_clock_init(struct device_node *np) > > { > > struct device_node *node; > > - int i; > > > > clk_base = of_iomap(np, 0); > > if (!clk_base) { > > @@ -1916,

Re: [PATCH v4 03/15] clk: tegra: common periph_clk_enb_refcnt and clks

2013-10-17 Thread Andrew Bresticker
Hi Peter, > static void __init tegra30_clock_init(struct device_node *np) > { > struct device_node *node; > - int i; > > clk_base = of_iomap(np, 0); > if (!clk_base) { > @@ -1916,8 +1910,11 @@ static void __init tegra30_clock_init(struct > device_node *np) >

[PATCH v4 03/15] clk: tegra: common periph_clk_enb_refcnt and clks

2013-10-17 Thread Peter De Schrijver
This patch makes periph_clk_enb_refcnt a global array, dynamically allocated at boottime. It simplifies the macros somewhat and allows clocks common to several Tegra SoCs to be defined in a separate files. Also the clks array becomes global and dynamically allocated which allows the DT registration