All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sachin Kamat <sachin.kamat@linaro.org>
To: Shaik Ameer Basha <shaik.ameer@samsung.com>
Cc: linux-samsung-soc@vger.kernel.org, kgene.kim@samsung.com,
	olofj@google.com, prashanth.g@samsung.com, joshi@samsung.com,
	ameersk@gmail.com, thomas.ab@samsung.com
Subject: Re: [PATCH 1/2] ARM: EXYNOS5: Add clock support for Gscaler
Date: Fri, 6 Jul 2012 20:30:12 +0530	[thread overview]
Message-ID: <CAK9yfHyPfM=mCw6SmxhAY+8ukek0ZnsyHoyT0V53gM6eAoqTTg@mail.gmail.com> (raw)
In-Reply-To: <1341578702-10263-2-git-send-email-shaik.ameer@samsung.com>

Hi Shaik,

Some nits:

Patch subject: s/EXYNOS5/EXYNOS

On 6 July 2012 18:15, Shaik Ameer Basha <shaik.ameer@samsung.com> wrote:
> Add required clock support for Gscaler for exynos5
>
> Signed-off-by: Abhilash Kesavan <a.kesavan@samsung.com>
> Signed-off-by: Leela Krishna Amudala <l.krishna@samsung.com>
> Signed-off-by: Prathyush K <prathyush.k@samsung.com>
> Signed-off-by: Shaik Ameer Basha <shaik.ameer@samsung.com>
> ---
>  arch/arm/mach-exynos/clock-exynos5.c |   79 ++++++++++++++++++++++++++++++++++
>  1 files changed, 79 insertions(+), 0 deletions(-)
>
> diff --git a/arch/arm/mach-exynos/clock-exynos5.c b/arch/arm/mach-exynos/clock-exynos5.c
> index fefa336..49f98cd 100644
> --- a/arch/arm/mach-exynos/clock-exynos5.c
> +++ b/arch/arm/mach-exynos/clock-exynos5.c
> @@ -741,6 +741,26 @@ static struct clk exynos5_init_clocks_off[] = {
>                 .enable         = exynos5_clk_ip_peric_ctrl,
>                 .ctrlbit        = (1 << 14),
>         }, {
> +               .name           = "gscl",
> +               .devname        = "exynos-gsc.0",
> +               .enable         = exynos5_clk_ip_gscl_ctrl,
> +               .ctrlbit        = (1 << 0),
> +       }, {
> +               .name           = "gscl",
> +               .devname        = "exynos-gsc.1",
> +               .enable         = exynos5_clk_ip_gscl_ctrl,
> +               .ctrlbit        = (1 << 1),
> +       }, {
> +               .name           = "gscl",
> +               .devname        = "exynos-gsc.2",
> +               .enable         = exynos5_clk_ip_gscl_ctrl,
> +               .ctrlbit        = (1 << 2),
> +       }, {
> +               .name           = "gscl",
> +               .devname        = "exynos-gsc.3",
> +               .enable         = exynos5_clk_ip_gscl_ctrl,
> +               .ctrlbit        = (1 << 3),
> +       }, {
>                 .name           = SYSMMU_CLOCK_NAME,
>                 .devname        = SYSMMU_CLOCK_DEVNAME(mfc_l, 0),
>                 .enable         = &exynos5_clk_ip_mfc_ctrl,
> @@ -1116,6 +1136,61 @@ static struct clksrc_clk exynos5_clksrcs[] = {
>         },
>  };
>
> +/* For ACLK_300_gscl_mid */
> +static struct clksrc_clk exynos5_clk_mout_aclk_300_gscl_mid = {
> +       .clk    = {
> +               .name   = "mout_aclk_300_gscl_mid",
> +       },
> +       .sources = &exynos5_clkset_aclk,
> +       .reg_src = { .reg = EXYNOS5_CLKSRC_TOP0, .shift = 24, .size = 1 },
> +};
> +
> +/* For ACLK_300_gscl */
> +struct clk *exynos5_clkset_aclk_300_gscl_list[] = {
> +       [0] = &exynos5_clk_mout_aclk_300_gscl_mid.clk,
> +       [1] = &exynos5_clk_sclk_vpll.clk,
> +};
> +
> +struct clksrc_sources exynos5_clkset_aclk_300_gscl = {
> +       .sources        = exynos5_clkset_aclk_300_gscl_list,
> +       .nr_sources     = ARRAY_SIZE(exynos5_clkset_aclk_300_gscl_list),
> +};
> +
> +static struct clksrc_clk exynos5_clk_mout_aclk_300_gscl = {
> +       .clk    = {
> +               .name           = "mout_aclk_300_gscl",
> +       },
> +       .sources = &exynos5_clkset_aclk_300_gscl,
> +       .reg_src = { .reg = EXYNOS5_CLKSRC_TOP0, .shift = 25, .size = 1 },
> +};
> +
> +static struct clksrc_clk exynos5_clk_dout_aclk_300_gscl = {
> +       .clk    = {
> +               .name           = "dout_aclk_300_gscl",
> +               .parent         = &exynos5_clk_mout_aclk_300_gscl.clk,
> +       },
> +       .reg_div = { .reg = EXYNOS5_CLKDIV_TOP1, .shift = 12, .size = 3 },
> +};
> +
> +/* Possible clock sources for aclk_300_gscl_sub Mux */
> +static struct clk *clk_src_gscl_300_list[] = {
> +       [0] = &clk_ext_xtal_mux,
> +       [1] = &exynos5_clk_dout_aclk_300_gscl.clk,
> +};
> +
> +static struct clksrc_sources clk_src_gscl_300 = {
> +       .sources        = clk_src_gscl_300_list,
> +       .nr_sources     = ARRAY_SIZE(clk_src_gscl_300_list),
> +};
> +
> +static struct clksrc_clk exynos5_clk_aclk_300_gscl = {
> +       .clk    = {
> +               .name           = "aclk_300_gscl",
> +       },
> +       .sources = &clk_src_gscl_300,
> +       .reg_src = { .reg = EXYNOS5_CLKSRC_TOP3, .shift = 10, .size = 1 },
> +};
> +
>  /* Clock initialization code */
>  static struct clksrc_clk *exynos5_sysclks[] = {
>         &exynos5_clk_mout_apll,
> @@ -1139,6 +1214,10 @@ static struct clksrc_clk *exynos5_sysclks[] = {
>         &exynos5_clk_aclk_266,
>         &exynos5_clk_aclk_200,
>         &exynos5_clk_aclk_166,
> +       &exynos5_clk_mout_aclk_300_gscl_mid,
> +       &exynos5_clk_mout_aclk_300_gscl,
> +       &exynos5_clk_dout_aclk_300_gscl,
> +       &exynos5_clk_aclk_300_gscl,
>         &exynos5_clk_aclk_66_pre,
>         &exynos5_clk_aclk_66,
>         &exynos5_clk_dout_mmc0,

Please maintain the alphabetic order.

> --
> 1.7.0.4
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html



-- 
With warm regards,
Sachin

  reply	other threads:[~2012-07-06 15:00 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-06 12:45 [PATCH 0/2] Add device tree and clock support for Gscaler Shaik Ameer Basha
2012-07-06 12:45 ` [PATCH 1/2] ARM: EXYNOS5: Add " Shaik Ameer Basha
2012-07-06 15:00   ` Sachin Kamat [this message]
2012-07-06 12:45 ` [PATCH 2/2] ARM: EXYNOS5: Add gscalar device from DT Shaik Ameer Basha
2012-07-06 18:50   ` Sylwester Nawrocki
2012-07-07  6:28   ` Sachin Kamat

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='CAK9yfHyPfM=mCw6SmxhAY+8ukek0ZnsyHoyT0V53gM6eAoqTTg@mail.gmail.com' \
    --to=sachin.kamat@linaro.org \
    --cc=ameersk@gmail.com \
    --cc=joshi@samsung.com \
    --cc=kgene.kim@samsung.com \
    --cc=linux-samsung-soc@vger.kernel.org \
    --cc=olofj@google.com \
    --cc=prashanth.g@samsung.com \
    --cc=shaik.ameer@samsung.com \
    --cc=thomas.ab@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 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.