From: Kukjin Kim <kgene.kim@samsung.com>
To: 'Sylwester Nawrocki' <s.nawrocki@samsung.com>,
linux-arm-kernel@lists.infradead.org,
linux-samsung-soc@vger.kernel.org
Cc: ben-linux@fluff.org, m.szyprowski@samsung.com, kyungmin.park@samsung.com
Subject: RE: [PATCH 4/4 v2] ARM: S5PV210: Add clock definition for MIPI-CSIS DPHY
Date: Fri, 10 Dec 2010 14:14:18 +0900 [thread overview]
Message-ID: <028901cb9829$1ad1cfb0$50756f10$%kim@samsung.com> (raw)
In-Reply-To: <1291405965-19482-5-git-send-email-s.nawrocki@samsung.com>
Sylwester Nawrocki wrote:
>
> MIPI DPHY control register requires special handling since it is shared
> between CSI (camera serial interface) and DSI (display serial interface).
> By creating this clock a serialized interface is provided for mipi-csis
> and mipi-dsim drivers, so DPHYs may be safely controlled by both drivers.
> Similarly dsim_dphy clock could be added for mipi-dsim.
>
> ---
>
> I am not quite sure about_"dphy_clock", perhaps power domain
> handling code would be better place for it.
>
Yeah, it is MIPI DPHY enable/disable control register not clock control.
So its proper position is not here...
Hmm...how about driver's probe/open or some kind of setup in machine
directory?
> Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
> ---
> arch/arm/mach-s5pv210/clock.c | 25 +++++++++++++++++++++++++
> 1 files changed, 25 insertions(+), 0 deletions(-)
>
> diff --git a/arch/arm/mach-s5pv210/clock.c b/arch/arm/mach-s5pv210/clock.c
> index b774ff1..b880b85 100644
> --- a/arch/arm/mach-s5pv210/clock.c
> +++ b/arch/arm/mach-s5pv210/clock.c
> @@ -185,6 +185,19 @@ static int s5pv210_clk_mask1_ctrl(struct clk *clk,
int
> enable)
> return s5p_gatectrl(S5P_CLK_SRC_MASK1, clk, enable);
> }
>
> +static int s5pv210_clk_mipi_dphy_ctrl(struct clk *clk, int enable)
> +{
> + return s5p_gatectrl(S5P_MIPI_DPHY_CONTROL, clk, enable);
> +}
> +
> +/* The common parent clock for mipi-csi/dsi clocks. */
> +static struct clk clk_vp_mipi_dphy = {
> + .name = "vpclk_csis_dphy",
> + .id = -1,
> + .enable = s5pv210_clk_mipi_dphy_ctrl,
> + .ctrlbit = (1 << 0),
> +};
> +
Hmm...
> static struct clk clk_sclk_hdmi27m = {
> .name = "sclk_hdmi27m",
> .id = -1,
> @@ -323,6 +336,18 @@ static struct clk init_clocks_disable[] = {
> .enable = s5pv210_clk_ip0_ctrl,
> .ctrlbit = (1 << 4),
> }, {
> + .name = "csis",
> + .id = -1,
> + .parent = &clk_pclk_dsys.clk,
> + .enable = s5pv210_clk_ip0_ctrl,
> + .ctrlbit = (1 << 31),
> + }, {
ok.
> + .name = "csis_dphy",
> + .id = -1,
> + .parent = &clk_vp_mipi_dphy,
> + .enable = s5pv210_clk_mipi_dphy_ctrl,
> + .ctrlbit = (1 << 1),
> + }, {
Same as above.
> .name = "rot",
> .id = -1,
> .parent = &clk_hclk_dsys.clk,
> --
Thanks.
Best regards,
Kgene.
--
Kukjin Kim <kgene.kim@samsung.com>, Senior Engineer,
SW Solution Development Team, Samsung Electronics Co., Ltd.
next prev parent reply other threads:[~2010-12-10 5:14 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-12-03 19:52 [PATCH 0/4 v2] ARM: S5P: Add platform support for MIPI-CSI slave devices Sylwester Nawrocki
2010-12-03 19:52 ` [PATCH 1/4 v2] ARM: S5PV210: Add resource definitions for MIPI CSIS Sylwester Nawrocki
2010-12-03 19:52 ` [PATCH 2/4 v2] ARM: S5PV310: " Sylwester Nawrocki
2010-12-03 19:52 ` [PATCH 3/4 v2] ARM: S5P: Add platform support for MIPI CSIS devices Sylwester Nawrocki
2010-12-03 19:52 ` [PATCH 4/4 v2] ARM: S5PV210: Add clock definition for MIPI-CSIS DPHY Sylwester Nawrocki
2010-12-10 5:14 ` Kukjin Kim [this message]
2010-12-10 9:12 ` Marek Szyprowski
2010-12-10 12:01 ` Sylwester Nawrocki
2010-12-10 13:24 ` Marek Szyprowski
2010-12-10 2:27 ` [PATCH 0/4 v2] ARM: S5P: Add platform support for MIPI-CSI slave devices Kukjin Kim
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='028901cb9829$1ad1cfb0$50756f10$%kim@samsung.com' \
--to=kgene.kim@samsung.com \
--cc=ben-linux@fluff.org \
--cc=kyungmin.park@samsung.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-samsung-soc@vger.kernel.org \
--cc=m.szyprowski@samsung.com \
--cc=s.nawrocki@samsung.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox