From: Benoit Cousson <b-cousson@ti.com>
To: "Shilimkar, Santosh" <santosh.shilimkar@ti.com>, tony@atomide.com
Cc: linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.orig
Subject: Re: [PATCH 2/2] ARM: OMAP5: Enable arch timer support
Date: Thu, 13 Sep 2012 10:56:25 +0200 [thread overview]
Message-ID: <50519FB9.9060208@ti.com> (raw)
In-Reply-To: <CAMQu2gzKDLBJmVdm0SUr0ec=LueT0mqBUYmHyGMsav5k=ggKQg@mail.gmail.com>
Hi Santosh,
On 09/11/2012 11:29 AM, Shilimkar, Santosh wrote:
> Benoit,
>
> On Mon, Sep 10, 2012 at 7:09 PM, Shilimkar, Santosh
> <santosh.shilimkar@ti.com> wrote:
>> On Mon, Sep 10, 2012 at 6:44 PM, Benoit Cousson <b-cousson@ti.com> wrote:
>>>
>
> [...]
>
>>>>> Silly question: Don't we have one arch-timer per CPU?
>>>>>
>>>> It is per CPU just like A9 TWD
>>>
>>> Shouldn't we have two nodes then?
>>>
>> I need to check this but arch timer DT node should be same
>> as the twd DT node. May be one node with reference to
>> each CPU node should do but am not too sure about the DT
>> nodes and how all that work.
>>
> Here is an updated patch based on our discussion. Thanks for comments.
> Let me know if you are ok with this version.
Cool, thanks for the update.
> From 98f6a3b4b52ef7c76ed8b19bf9257c51ee5d7323 Mon Sep 17 00:00:00 2001
> From: Santosh Shilimkar <santosh.shilimkar@ti.com>
> Date: Mon, 13 Aug 2012 14:39:03 +0530
> Subject: [PATCH] ARM: OMAP5: Enable arch timer support
>
> Enable Cortex A15 generic timer support for OMAP5 based SOCs.
> The CPU local timers run on the free running real time counter clock.
>
> Signed-off-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Acked-by: Benoit Cousson <b-cousson@ti.com>
Tony,
I can potentially add it along with the timer changes in the dts part2
series if you ack the timer patch. We don't have tons of OMAP5 content
in the dts branch so it should not conflict.
Regards,
Benoit
> ---
> arch/arm/boot/dts/omap5.dtsi | 12 ++++++++++++
> arch/arm/mach-omap2/Kconfig | 1 +
> arch/arm/mach-omap2/timer.c | 7 +++++++
> 3 files changed, 20 insertions(+)
>
> diff --git a/arch/arm/boot/dts/omap5.dtsi b/arch/arm/boot/dts/omap5.dtsi
> index 57e5270..7b986ed 100644
> --- a/arch/arm/boot/dts/omap5.dtsi
> +++ b/arch/arm/boot/dts/omap5.dtsi
> @@ -33,9 +33,21 @@
> cpus {
> cpu@0 {
> compatible = "arm,cortex-a15";
> + timer {
> + compatible = "arm,armv7-timer";
> + /* 14th PPI IRQ, active low level-sensitive */
> + interrupts = <1 14 0x308>;
> + clock-frequency = <6144000>;
> + };
> };
> cpu@1 {
> compatible = "arm,cortex-a15";
> + timer {
> + compatible = "arm,armv7-timer";
> + /* 14th PPI IRQ, active low level-sensitive */
> + interrupts = <1 14 0x308>;
> + clock-frequency = <6144000>;
> + };
> };
> };
>
> diff --git a/arch/arm/mach-omap2/Kconfig b/arch/arm/mach-omap2/Kconfig
> index 2120f90..53fb77c 100644
> --- a/arch/arm/mach-omap2/Kconfig
> +++ b/arch/arm/mach-omap2/Kconfig
> @@ -73,6 +73,7 @@ config SOC_OMAP5
> select ARM_GIC
> select HAVE_SMP
> select SOC_HAS_REALTIME_COUNTER
> + select ARM_ARCH_TIMER
>
> comment "OMAP Core Type"
> depends on ARCH_OMAP2
> diff --git a/arch/arm/mach-omap2/timer.c b/arch/arm/mach-omap2/timer.c
> index 8f5b88b..46982d0 100644
> --- a/arch/arm/mach-omap2/timer.c
> +++ b/arch/arm/mach-omap2/timer.c
> @@ -41,6 +41,7 @@
> #include <plat/dmtimer.h>
> #include <asm/smp_twd.h>
> #include <asm/sched_clock.h>
> +#include <asm/arch_timer.h>
> #include "common.h"
> #include <plat/omap_hwmod.h>
> #include <plat/omap_device.h>
> @@ -481,9 +482,15 @@ OMAP_SYS_TIMER(4)
> #ifdef CONFIG_SOC_OMAP5
> static void __init omap5_timer_init(void)
> {
> + int err;
> +
> omap2_gp_clockevent_init(1, OMAP4_CLKEV_SOURCE);
> omap2_clocksource_init(2, OMAP4_MPU_SOURCE);
> realtime_counter_init();
> +
> + err = arch_timer_of_register();
> + if (err)
> + pr_err("%s: arch_timer_register failed %d\n", __func__, err);
> }
> OMAP_SYS_TIMER(5)
> #endif
>
next prev parent reply other threads:[~2012-09-13 8:56 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-13 11:07 [PATCH 0/2] ARM: OMAP5: Enable local timer support Santosh Shilimkar
2012-08-13 11:07 ` [PATCH 1/2] ARM: OMAP: Add initialisation for the real-time counter Santosh Shilimkar
2012-08-13 17:35 ` Vaibhav Hiremath
2012-08-14 6:16 ` Shilimkar, Santosh
2012-08-14 6:22 ` Hiremath, Vaibhav
2012-08-17 8:47 ` Shilimkar, Santosh
2012-08-13 11:07 ` [PATCH 2/2] ARM: OMAP5: Enable arch timer support Santosh Shilimkar
2012-09-10 11:45 ` Shilimkar, Santosh
2012-09-10 12:47 ` Benoit Cousson
2012-09-10 13:01 ` Shilimkar, Santosh
2012-09-10 13:14 ` Benoit Cousson
2012-09-10 13:39 ` Shilimkar, Santosh
2012-09-11 9:29 ` Shilimkar, Santosh
2012-09-13 8:56 ` Benoit Cousson [this message]
2012-09-13 9:00 ` Shilimkar, Santosh
2012-09-13 9:27 ` Benoit Cousson
2012-09-13 10:00 ` Shilimkar, Santosh
2012-09-13 10:05 ` Shilimkar, Santosh
2012-09-17 21:38 ` Tony Lindgren
2012-09-17 21:39 ` Tony Lindgren
2012-09-18 6:06 ` Shilimkar, Santosh
2012-09-18 17:53 ` Tony Lindgren
2012-09-19 7:57 ` Shilimkar, Santosh
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=50519FB9.9060208@ti.com \
--to=b-cousson@ti.com \
--cc=linux-arm-kernel@lists.infradead.orig \
--cc=linux-omap@vger.kernel.org \
--cc=santosh.shilimkar@ti.com \
--cc=tony@atomide.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.