All of lore.kernel.org
 help / color / mirror / Atom feed
From: Kukjin Kim <kgene.kim@samsung.com>
To: Thomas Abraham <thomas.ab@samsung.com>
Cc: linux-samsung-soc@vger.kernel.org, kgene.kim@samsung.com
Subject: Re: [PATCH 4/7] ARM: S5P64X0: Add clkdev support
Date: Wed, 25 May 2011 14:45:42 -0700	[thread overview]
Message-ID: <4DDD7886.6010105@samsung.com> (raw)
In-Reply-To: <1305839906-1815-5-git-send-email-thomas.ab@samsung.com>

On 05/19/11 14:18, Thomas Abraham wrote:
> Add clkdev support for Samsung's s5p64x0 platforms.
>
> Signed-off-by: Thomas Abraham<thomas.ab@samsung.com>
> ---
>   arch/arm/Kconfig                            |    1 +
>   arch/arm/mach-s5p64x0/clock-s5p6440.c       |   20 ++++++++++++++++++++
>   arch/arm/mach-s5p64x0/clock-s5p6450.c       |   19 +++++++++++++++++++
>   arch/arm/mach-s5p64x0/include/mach/clkdev.h |    7 +++++++
>   arch/arm/plat-s5p/s5p-time.c                |    9 +++++++++
>   5 files changed, 56 insertions(+), 0 deletions(-)
>   create mode 100644 arch/arm/mach-s5p64x0/include/mach/clkdev.h

(snip)

I wonder why following is included in this, "S5P64X0: Add clkdev support".

> diff --git a/arch/arm/plat-s5p/s5p-time.c b/arch/arm/plat-s5p/s5p-time.c
> index 8090403..d9efd29 100644
> --- a/arch/arm/plat-s5p/s5p-time.c
> +++ b/arch/arm/plat-s5p/s5p-time.c
> @@ -408,6 +408,7 @@ static void __init s5p_timer_resources(void)
>
>   	unsigned long event_id = timer_source.event_id;
>   	unsigned long source_id = timer_source.source_id;
> +	char devname[15];
>
>   	timerclk = clk_get(NULL, "timers");
>   	if (IS_ERR(timerclk))
> @@ -415,6 +416,10 @@ static void __init s5p_timer_resources(void)
>
>   	clk_enable(timerclk);
>
> +	sprintf(devname, "s3c24xx-pwm.%lu", event_id);
> +	s3c_device_timer[event_id].id = event_id;
> +	s3c_device_timer[event_id].dev.init_name = devname;
> +
>   	tin_event = clk_get(&s3c_device_timer[event_id].dev, "pwm-tin");
>   	if (IS_ERR(tin_event))
>   		panic("failed to get pwm-tin clock for event timer");
> @@ -425,6 +430,10 @@ static void __init s5p_timer_resources(void)
>
>   	clk_enable(tin_event);
>
> +	sprintf(devname, "s3c24xx-pwm.%lu", source_id);
> +	s3c_device_timer[source_id].id = source_id;
> +	s3c_device_timer[source_id].dev.init_name = devname;
> +
>   	tin_source = clk_get(&s3c_device_timer[source_id].dev, "pwm-tin");
>   	if (IS_ERR(tin_source))
>   		panic("failed to get pwm-tin clock for source timer");


Thanks.

Best regards,
Kgene.
--
Kukjin Kim <kgene.kim@samsung.com>, Senior Engineer,
SW Solution Development Team, Samsung Electronics Co., Ltd.

  reply	other threads:[~2011-05-25 21:45 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-19 21:18 [RFC][PATCH 0/7] ARM: Add clkdev support for Samsung's platforms Thomas Abraham
2011-05-19 21:18 ` [PATCH 1/7] ARM: SAMSUNG: Add clkdev infrastructure Thomas Abraham
2011-05-19 21:18 ` [PATCH 2/7] ARM: S3C24XX: Add clkdev support Thomas Abraham
2011-05-19 21:18 ` [PATCH 3/7] ARM: S3C64XX: " Thomas Abraham
2011-05-19 21:18 ` [PATCH 4/7] ARM: S5P64X0: " Thomas Abraham
2011-05-25 21:45   ` Kukjin Kim [this message]
2011-05-26  3:10     ` Thomas Abraham
2011-05-19 21:18 ` [PATCH 5/7] ARM: S5PC100: " Thomas Abraham
2011-05-25 21:42   ` Kukjin Kim
2011-05-19 21:18 ` [PATCH 6/7] ARM: S5PV210: " Thomas Abraham
2011-05-25 21:39   ` Kukjin Kim
2011-05-19 21:18 ` [PATCH 7/7] ARM: Exynos4: " Thomas Abraham
2011-05-25 21:34   ` Kukjin Kim
2011-05-26  2:51     ` Thomas Abraham
2011-05-25 21:52 ` [RFC][PATCH 0/7] ARM: Add clkdev support for Samsung's platforms Kukjin Kim
2011-05-26  3:11   ` Thomas Abraham

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=4DDD7886.6010105@samsung.com \
    --to=kgene.kim@samsung.com \
    --cc=linux-samsung-soc@vger.kernel.org \
    --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.