From: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
To: linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH 3/3] clk: shmobile: Add R8A7790 clocks support
Date: Thu, 07 Nov 2013 12:15:26 +0000 [thread overview]
Message-ID: <3394178.9T7q17vczr@avalon> (raw)
In-Reply-To: <871u2s65kz.wl%kuninori.morimoto.gx@renesas.com>
Hi Morimoto-san,
On Wednesday 06 November 2013 23:20:32 Kuninori Morimoto wrote:
> Hi Laurent again
>
> > In my SuperH experience, CPG clock divier has same pattern.
> > In H2's SDCKCR register, SDHFC and SD0FC looks different.
> > But, the real different is only enabled bit area,
> > the value is same.
> > You can find same pattern on FRQCRB register too,
> > and, you can find same pattern on M2.
> >
> > I guess FRQCRB/SDHFC can share code if it has mask.
> > This idea was used on R-Mobile series on div4.
> > (ex clock-sh73a0.c :: div4_clks)
>
> I talked it with Magnus, and I understand your headache.
> I can agree about your approach now.
>
> But, I guess H2 and M2 are very similar SoC.
> and I don't want too many clock-${SoC} files.
> Is it possible to share code like clk-gen2.c ?
Sure, if the hardware is very similar, it makes sense to share code. I've had
a quick look at the M2 documentation, and it seems to be indeed mostly
identical to H2. Only a couple of clocks are missing, and a new GPU clock
register is documented. As the GPU clock is mentioned in the H2 documentation
as being programmable I would assume that the GPU clock register exists and is
identical in H2 but has been forgotten in the documentation.
We should probably extend clock-r8a7790.c with M2 support and rename it to
clock-rcar-gen2.c before pushing it to mainline. Would you like to submit a
patch ? :-)
--
Regards,
Laurent Pinchart
WARNING: multiple messages have this Message-ID (diff)
From: laurent.pinchart@ideasonboard.com (Laurent Pinchart)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 3/3] clk: shmobile: Add R8A7790 clocks support
Date: Thu, 07 Nov 2013 13:15:26 +0100 [thread overview]
Message-ID: <3394178.9T7q17vczr@avalon> (raw)
In-Reply-To: <871u2s65kz.wl%kuninori.morimoto.gx@renesas.com>
Hi Morimoto-san,
On Wednesday 06 November 2013 23:20:32 Kuninori Morimoto wrote:
> Hi Laurent again
>
> > In my SuperH experience, CPG clock divier has same pattern.
> > In H2's SDCKCR register, SDHFC and SD0FC looks different.
> > But, the real different is only enabled bit area,
> > the value is same.
> > You can find same pattern on FRQCRB register too,
> > and, you can find same pattern on M2.
> >
> > I guess FRQCRB/SDHFC can share code if it has mask.
> > This idea was used on R-Mobile series on div4.
> > (ex clock-sh73a0.c :: div4_clks)
>
> I talked it with Magnus, and I understand your headache.
> I can agree about your approach now.
>
> But, I guess H2 and M2 are very similar SoC.
> and I don't want too many clock-${SoC} files.
> Is it possible to share code like clk-gen2.c ?
Sure, if the hardware is very similar, it makes sense to share code. I've had
a quick look at the M2 documentation, and it seems to be indeed mostly
identical to H2. Only a couple of clocks are missing, and a new GPU clock
register is documented. As the GPU clock is mentioned in the H2 documentation
as being programmable I would assume that the GPU clock register exists and is
identical in H2 but has been forgotten in the documentation.
We should probably extend clock-r8a7790.c with M2 support and rename it to
clock-rcar-gen2.c before pushing it to mainline. Would you like to submit a
patch ? :-)
--
Regards,
Laurent Pinchart
WARNING: multiple messages have this Message-ID (diff)
From: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
To: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Cc: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>,
linux-sh@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
devicetree@vger.kernel.org,
Mike Turquette <mturquette@linaro.org>
Subject: Re: [PATCH 3/3] clk: shmobile: Add R8A7790 clocks support
Date: Thu, 07 Nov 2013 13:15:26 +0100 [thread overview]
Message-ID: <3394178.9T7q17vczr@avalon> (raw)
In-Reply-To: <871u2s65kz.wl%kuninori.morimoto.gx@renesas.com>
Hi Morimoto-san,
On Wednesday 06 November 2013 23:20:32 Kuninori Morimoto wrote:
> Hi Laurent again
>
> > In my SuperH experience, CPG clock divier has same pattern.
> > In H2's SDCKCR register, SDHFC and SD0FC looks different.
> > But, the real different is only enabled bit area,
> > the value is same.
> > You can find same pattern on FRQCRB register too,
> > and, you can find same pattern on M2.
> >
> > I guess FRQCRB/SDHFC can share code if it has mask.
> > This idea was used on R-Mobile series on div4.
> > (ex clock-sh73a0.c :: div4_clks)
>
> I talked it with Magnus, and I understand your headache.
> I can agree about your approach now.
>
> But, I guess H2 and M2 are very similar SoC.
> and I don't want too many clock-${SoC} files.
> Is it possible to share code like clk-gen2.c ?
Sure, if the hardware is very similar, it makes sense to share code. I've had
a quick look at the M2 documentation, and it seems to be indeed mostly
identical to H2. Only a couple of clocks are missing, and a new GPU clock
register is documented. As the GPU clock is mentioned in the H2 documentation
as being programmable I would assume that the GPU clock register exists and is
identical in H2 but has been forgotten in the documentation.
We should probably extend clock-r8a7790.c with M2 support and rename it to
clock-rcar-gen2.c before pushing it to mainline. Would you like to submit a
patch ? :-)
--
Regards,
Laurent Pinchart
next prev parent reply other threads:[~2013-11-07 12:15 UTC|newest]
Thread overview: 105+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-29 14:55 [PATCH 0/3] Renesas R8A7790 Common Clock Framework support Laurent Pinchart
2013-10-29 14:55 ` Laurent Pinchart
2013-10-29 14:55 ` Laurent Pinchart
2013-10-29 14:55 ` [PATCH 1/3] clk: shmobile: Add DIV6 clock support Laurent Pinchart
2013-10-29 14:55 ` Laurent Pinchart
2013-10-29 14:55 ` Laurent Pinchart
2013-10-29 23:33 ` Kumar Gala
2013-10-29 23:33 ` Kumar Gala
2013-10-29 23:33 ` Kumar Gala
2013-10-29 23:54 ` Laurent Pinchart
2013-10-29 23:54 ` Laurent Pinchart
2013-10-29 23:54 ` Laurent Pinchart
2013-10-29 23:56 ` Kumar Gala
2013-10-29 23:56 ` Kumar Gala
2013-10-29 23:56 ` Kumar Gala
2013-10-29 14:55 ` [PATCH 2/3] clk: shmobile: Add MSTP " Laurent Pinchart
2013-10-29 14:55 ` Laurent Pinchart
2013-10-29 14:55 ` Laurent Pinchart
2013-10-29 23:36 ` Kumar Gala
2013-10-29 23:36 ` Kumar Gala
2013-10-29 23:36 ` Kumar Gala
2013-10-30 0:06 ` Laurent Pinchart
2013-10-30 0:06 ` Laurent Pinchart
2013-10-30 0:06 ` Laurent Pinchart
2013-10-30 0:19 ` Kumar Gala
2013-10-30 0:19 ` Kumar Gala
2013-10-30 0:19 ` Kumar Gala
2013-10-31 15:15 ` Laurent Pinchart
2013-10-31 15:15 ` Laurent Pinchart
2013-10-31 15:15 ` Laurent Pinchart
2013-11-06 2:09 ` Simon Horman
2013-11-06 2:09 ` Simon Horman
2013-11-06 2:09 ` Simon Horman
2013-11-06 12:22 ` Laurent Pinchart
2013-11-06 12:22 ` Laurent Pinchart
2013-11-06 12:22 ` Laurent Pinchart
2013-11-06 8:33 ` Magnus Damm
2013-11-06 8:33 ` Magnus Damm
2013-11-06 8:33 ` Magnus Damm
2013-11-06 12:13 ` Laurent Pinchart
2013-11-06 12:13 ` Laurent Pinchart
2013-11-06 12:13 ` Laurent Pinchart
2013-10-29 14:55 ` [PATCH 3/3] clk: shmobile: Add R8A7790 clocks support Laurent Pinchart
2013-10-29 14:55 ` Laurent Pinchart
2013-10-29 14:55 ` Laurent Pinchart
2013-10-29 23:56 ` Kumar Gala
2013-10-29 23:56 ` Kumar Gala
2013-10-29 23:56 ` Kumar Gala
2013-11-05 7:56 ` Magnus Damm
2013-11-05 7:56 ` Magnus Damm
2013-11-05 7:56 ` Magnus Damm
2013-11-05 23:47 ` Laurent Pinchart
2013-11-05 23:47 ` Laurent Pinchart
2013-11-05 23:47 ` Laurent Pinchart
2013-11-06 8:19 ` Magnus Damm
2013-11-06 8:19 ` Magnus Damm
2013-11-06 8:19 ` Magnus Damm
2013-11-06 12:45 ` Laurent Pinchart
2013-11-06 12:45 ` Laurent Pinchart
2013-11-06 12:45 ` Laurent Pinchart
2013-11-05 8:52 ` Kuninori Morimoto
2013-11-05 8:52 ` Kuninori Morimoto
2013-11-05 8:52 ` Kuninori Morimoto
2013-11-05 23:57 ` Laurent Pinchart
2013-11-05 23:57 ` Laurent Pinchart
2013-11-05 23:57 ` Laurent Pinchart
2013-11-06 0:54 ` Kuninori Morimoto
2013-11-06 0:54 ` Kuninori Morimoto
2013-11-06 0:54 ` Kuninori Morimoto
2013-11-06 1:00 ` Laurent Pinchart
2013-11-06 1:00 ` Laurent Pinchart
2013-11-06 1:00 ` Laurent Pinchart
2013-11-06 2:31 ` Kuninori Morimoto
2013-11-06 2:31 ` Kuninori Morimoto
2013-11-06 2:31 ` Kuninori Morimoto
2013-11-06 12:41 ` Laurent Pinchart
2013-11-06 12:41 ` Laurent Pinchart
2013-11-06 12:41 ` Laurent Pinchart
2013-11-07 3:22 ` Kuninori Morimoto
2013-11-07 3:22 ` Kuninori Morimoto
2013-11-07 3:22 ` Kuninori Morimoto
2013-11-07 7:20 ` Kuninori Morimoto
2013-11-07 7:20 ` Kuninori Morimoto
2013-11-07 7:20 ` Kuninori Morimoto
2013-11-07 12:15 ` Laurent Pinchart [this message]
2013-11-07 12:15 ` Laurent Pinchart
2013-11-07 12:15 ` Laurent Pinchart
2013-11-08 0:06 ` Kuninori Morimoto
2013-11-08 0:06 ` Kuninori Morimoto
2013-11-08 0:06 ` Kuninori Morimoto
2013-11-08 1:00 ` Laurent Pinchart
2013-11-08 1:00 ` Laurent Pinchart
2013-11-08 1:00 ` Laurent Pinchart
2013-11-08 6:02 ` Kuninori Morimoto
2013-11-08 6:02 ` Kuninori Morimoto
2013-11-08 6:02 ` Kuninori Morimoto
2013-11-06 7:18 ` Simon Horman
2013-11-06 7:18 ` Simon Horman
2013-11-06 7:18 ` Simon Horman
2013-11-06 12:56 ` Laurent Pinchart
2013-11-06 12:56 ` Laurent Pinchart
2013-11-06 12:56 ` Laurent Pinchart
2013-11-08 6:34 ` Simon Horman
2013-11-08 6:34 ` Simon Horman
2013-11-08 6:34 ` Simon Horman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3394178.9T7q17vczr@avalon \
--to=laurent.pinchart@ideasonboard.com \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.