From mboxrd@z Thu Jan 1 00:00:00 1970 From: Laurent Pinchart Date: Sun, 02 Mar 2014 22:21:40 +0000 Subject: Re: [PATCH 4/4] ARM: shmobile: r7s72100: use workaround for non DT-clocks Message-Id: <1712106.fu6iC2mT2W@avalon> List-Id: References: <1393621768-12568-1-git-send-email-wsa@the-dreams.de> <1393621768-12568-5-git-send-email-wsa@the-dreams.de> In-Reply-To: <1393621768-12568-5-git-send-email-wsa@the-dreams.de> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-arm-kernel@lists.infradead.org Hi Wolfram, Thank you for the patch. On Friday 28 February 2014 22:09:28 Wolfram Sang wrote: > From: Wolfram Sang > > SCIF2 and MTU2 are not yet prepared for DT usage, so use the common > workaround via clkdev for now. What about adding a DT node for the serial port instead ? :-) > Signed-off-by: Wolfram Sang > --- > arch/arm/mach-shmobile/board-genmai-reference.c | 15 +++++++++++++-- > 1 file changed, 13 insertions(+), 2 deletions(-) > > diff --git a/arch/arm/mach-shmobile/board-genmai-reference.c > b/arch/arm/mach-shmobile/board-genmai-reference.c index 7630c10..91dcdd0 > 100644 > --- a/arch/arm/mach-shmobile/board-genmai-reference.c > +++ b/arch/arm/mach-shmobile/board-genmai-reference.c > @@ -18,18 +18,29 @@ > * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 > USA */ > > -#include > #include > #include > +#include > #include > #include > #include > #include > > +#ifdef CONFIG_COMMON_CLK > +/* > + * This is a really crude hack to provide clkdev support to platform > + * devices until they get moved to DT. > + */ > +static const struct clk_name clk_names[] = { > + { "mtu2", NULL, "sh_mtu2.0" }, > + { "scif2", NULL, "sh-sci.2" }, > +}; > +#endif > + > static void __init genmai_add_standard_devices(void) > { > #ifdef CONFIG_COMMON_CLK > - of_clk_init(NULL); > + shmobile_clk_workaround(clk_names, ARRAY_SIZE(clk_names), true); > #else > r7s72100_clock_init(); > #endif -- Regards, Laurent Pinchart From mboxrd@z Thu Jan 1 00:00:00 1970 From: laurent.pinchart@ideasonboard.com (Laurent Pinchart) Date: Sun, 02 Mar 2014 23:21:40 +0100 Subject: [PATCH 4/4] ARM: shmobile: r7s72100: use workaround for non DT-clocks In-Reply-To: <1393621768-12568-5-git-send-email-wsa@the-dreams.de> References: <1393621768-12568-1-git-send-email-wsa@the-dreams.de> <1393621768-12568-5-git-send-email-wsa@the-dreams.de> Message-ID: <1712106.fu6iC2mT2W@avalon> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org Hi Wolfram, Thank you for the patch. On Friday 28 February 2014 22:09:28 Wolfram Sang wrote: > From: Wolfram Sang > > SCIF2 and MTU2 are not yet prepared for DT usage, so use the common > workaround via clkdev for now. What about adding a DT node for the serial port instead ? :-) > Signed-off-by: Wolfram Sang > --- > arch/arm/mach-shmobile/board-genmai-reference.c | 15 +++++++++++++-- > 1 file changed, 13 insertions(+), 2 deletions(-) > > diff --git a/arch/arm/mach-shmobile/board-genmai-reference.c > b/arch/arm/mach-shmobile/board-genmai-reference.c index 7630c10..91dcdd0 > 100644 > --- a/arch/arm/mach-shmobile/board-genmai-reference.c > +++ b/arch/arm/mach-shmobile/board-genmai-reference.c > @@ -18,18 +18,29 @@ > * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 > USA */ > > -#include > #include > #include > +#include > #include > #include > #include > #include > > +#ifdef CONFIG_COMMON_CLK > +/* > + * This is a really crude hack to provide clkdev support to platform > + * devices until they get moved to DT. > + */ > +static const struct clk_name clk_names[] = { > + { "mtu2", NULL, "sh_mtu2.0" }, > + { "scif2", NULL, "sh-sci.2" }, > +}; > +#endif > + > static void __init genmai_add_standard_devices(void) > { > #ifdef CONFIG_COMMON_CLK > - of_clk_init(NULL); > + shmobile_clk_workaround(clk_names, ARRAY_SIZE(clk_names), true); > #else > r7s72100_clock_init(); > #endif -- Regards, Laurent Pinchart