Re: [PATCH 04/26] clk: prima2: declare OF clock provider

2013-09-28 Thread Barry Song
2013/9/28 Sebastian Hesselbarth : > On 09/22/2013 12:37 PM, Barry Song wrote: >> >> 2013/9/22 Sebastian Hesselbarth : >>> >>> On 09/19/2013 10:48 AM, Sebastian Hesselbarth wrote: On 09/19/13 10:45, Barry Song wrote: >> >> >> @@ -1124,3 +1106,4 @@ void __init

Re: [PATCH 04/26] clk: prima2: declare OF clock provider

2013-09-28 Thread Barry Song
2013/9/28 Sebastian Hesselbarth sebastian.hesselba...@gmail.com: On 09/22/2013 12:37 PM, Barry Song wrote: 2013/9/22 Sebastian Hesselbarth sebastian.hesselba...@gmail.com: On 09/19/2013 10:48 AM, Sebastian Hesselbarth wrote: On 09/19/13 10:45, Barry Song wrote: @@ -1124,3 +1106,4 @@

Re: [PATCH 04/26] clk: prima2: declare OF clock provider

2013-09-27 Thread Sebastian Hesselbarth
On 09/22/2013 12:37 PM, Barry Song wrote: 2013/9/22 Sebastian Hesselbarth : On 09/19/2013 10:48 AM, Sebastian Hesselbarth wrote: On 09/19/13 10:45, Barry Song wrote: @@ -1124,3 +1106,4 @@ void __init sirfsoc_of_clk_init(void) of_clk_add_provider(np, of_clk_src_onecell_get,

Re: [PATCH 04/26] clk: prima2: declare OF clock provider

2013-09-27 Thread Sebastian Hesselbarth
On 09/22/2013 12:37 PM, Barry Song wrote: 2013/9/22 Sebastian Hesselbarth sebastian.hesselba...@gmail.com: On 09/19/2013 10:48 AM, Sebastian Hesselbarth wrote: On 09/19/13 10:45, Barry Song wrote: @@ -1124,3 +1106,4 @@ void __init sirfsoc_of_clk_init(void) of_clk_add_provider(np,

Re: [PATCH 04/26] clk: prima2: declare OF clock provider

2013-09-22 Thread Barry Song
2013/9/22 Sebastian Hesselbarth : > On 09/19/2013 10:48 AM, Sebastian Hesselbarth wrote: >> >> On 09/19/13 10:45, Barry Song wrote: @@ -1124,3 +1106,4 @@ void __init sirfsoc_of_clk_init(void) of_clk_add_provider(np, of_clk_src_onecell_get, _data); }

Re: [PATCH 04/26] clk: prima2: declare OF clock provider

2013-09-22 Thread Sebastian Hesselbarth
On 09/19/2013 10:48 AM, Sebastian Hesselbarth wrote: On 09/19/13 10:45, Barry Song wrote: @@ -1124,3 +1106,4 @@ void __init sirfsoc_of_clk_init(void) of_clk_add_provider(np, of_clk_src_onecell_get, _data); } +CLK_OF_DECLARE(sirfsoc_clk, "sirf,prima2-clkc", sirfsoc_clk_init); hi

Re: [PATCH 04/26] clk: prima2: declare OF clock provider

2013-09-22 Thread Sebastian Hesselbarth
On 09/19/2013 10:48 AM, Sebastian Hesselbarth wrote: On 09/19/13 10:45, Barry Song wrote: @@ -1124,3 +1106,4 @@ void __init sirfsoc_of_clk_init(void) of_clk_add_provider(np, of_clk_src_onecell_get, clk_data); } +CLK_OF_DECLARE(sirfsoc_clk, sirf,prima2-clkc, sirfsoc_clk_init); hi

Re: [PATCH 04/26] clk: prima2: declare OF clock provider

2013-09-22 Thread Barry Song
2013/9/22 Sebastian Hesselbarth sebastian.hesselba...@gmail.com: On 09/19/2013 10:48 AM, Sebastian Hesselbarth wrote: On 09/19/13 10:45, Barry Song wrote: @@ -1124,3 +1106,4 @@ void __init sirfsoc_of_clk_init(void) of_clk_add_provider(np, of_clk_src_onecell_get, clk_data); }

Re: [PATCH 04/26] clk: prima2: declare OF clock provider

2013-09-19 Thread Sebastian Hesselbarth
On 09/19/13 10:45, Barry Song wrote: @@ -1124,3 +1106,4 @@ void __init sirfsoc_of_clk_init(void) of_clk_add_provider(np, of_clk_src_onecell_get, _data); } +CLK_OF_DECLARE(sirfsoc_clk, "sirf,prima2-clkc", sirfsoc_clk_init); hi Sebastian, what if the driver is compatible with

Re: [PATCH 04/26] clk: prima2: declare OF clock provider

2013-09-19 Thread Barry Song
> @@ -1124,3 +1106,4 @@ void __init sirfsoc_of_clk_init(void) > > of_clk_add_provider(np, of_clk_src_onecell_get, _data); > } > +CLK_OF_DECLARE(sirfsoc_clk, "sirf,prima2-clkc", sirfsoc_clk_init); hi Sebastian, what if the driver is compatible with multiple clk controllers and we want to

Re: [PATCH 04/26] clk: prima2: declare OF clock provider

2013-09-19 Thread Barry Song
@@ -1124,3 +1106,4 @@ void __init sirfsoc_of_clk_init(void) of_clk_add_provider(np, of_clk_src_onecell_get, clk_data); } +CLK_OF_DECLARE(sirfsoc_clk, sirf,prima2-clkc, sirfsoc_clk_init); hi Sebastian, what if the driver is compatible with multiple clk controllers and we want to add

Re: [PATCH 04/26] clk: prima2: declare OF clock provider

2013-09-19 Thread Sebastian Hesselbarth
On 09/19/13 10:45, Barry Song wrote: @@ -1124,3 +1106,4 @@ void __init sirfsoc_of_clk_init(void) of_clk_add_provider(np, of_clk_src_onecell_get, clk_data); } +CLK_OF_DECLARE(sirfsoc_clk, sirf,prima2-clkc, sirfsoc_clk_init); hi Sebastian, what if the driver is compatible with

[PATCH 04/26] clk: prima2: declare OF clock provider

2013-09-18 Thread Sebastian Hesselbarth
Common clock framework allows to register clock providers to get called on of_clk_init() by using CLK_OF_DECLARE. This converts prima2 clock provider to make use of it and get rid of the mach specific clk init call. Signed-off-by: Sebastian Hesselbarth --- Cc: Olof Johansson Cc: Arnd Bergmann

[PATCH 04/26] clk: prima2: declare OF clock provider

2013-09-18 Thread Sebastian Hesselbarth
Common clock framework allows to register clock providers to get called on of_clk_init() by using CLK_OF_DECLARE. This converts prima2 clock provider to make use of it and get rid of the mach specific clk init call. Signed-off-by: Sebastian Hesselbarth sebastian.hesselba...@gmail.com --- Cc: Olof