mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
To: Sascha Hauer <s.hauer@pengutronix.de>
Cc: barebox@lists.infradead.org
Subject: Re: [PATCH 1/1] arm: add generic smp twd timer
Date: Thu, 4 Oct 2012 11:54:15 +0200	[thread overview]
Message-ID: <20121004095415.GI26553@game.jcrosoft.org> (raw)
In-Reply-To: <20121004072432.GG1322@pengutronix.de>

On 09:24 Thu 04 Oct     , Sascha Hauer wrote:
> On Thu, Oct 04, 2012 at 09:01:33AM +0200, Jean-Christophe PLAGNIOL-VILLARD wrote:
> > on Cortex A9 and Cortex A5 we have a generic timer which we can use as
> > clocksource
> > 
> > Limit the timer frequency to < 25Mhz
> > 
> > Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
> > ---
> >  arch/arm/cpu/Kconfig           |    3 ++
> >  arch/arm/cpu/Makefile          |    1 +
> >  arch/arm/cpu/smp_twd.c         |   93 ++++++++++++++++++++++++++++++++++++++++
> >  arch/arm/include/asm/smp_twd.h |   23 ++++++++++
> >  4 files changed, 120 insertions(+)
> >  create mode 100644 arch/arm/cpu/smp_twd.c
> >  create mode 100644 arch/arm/include/asm/smp_twd.h
> > 
> > diff --git a/arch/arm/cpu/Kconfig b/arch/arm/cpu/Kconfig
> > index f55e862..a7a1cdb 100644
> > --- a/arch/arm/cpu/Kconfig
> > +++ b/arch/arm/cpu/Kconfig
> > @@ -94,3 +94,6 @@ config CACHE_L2X0
> >  	bool "Enable L2x0 PrimeCell"
> >  	depends on MMU && ARCH_HAS_L2X0
> >  
> > +config ARM_SMP_TWD
> > +	bool
> > +	depends on CPU_V7
> > diff --git a/arch/arm/cpu/Makefile b/arch/arm/cpu/Makefile
> > index f7ab276..c5cbdfb 100644
> > --- a/arch/arm/cpu/Makefile
> > +++ b/arch/arm/cpu/Makefile
> > @@ -18,5 +18,6 @@ pbl-$(CONFIG_CPU_32v6) += cache-armv6.o
> >  obj-$(CONFIG_CPU_32v7) += cache-armv7.o
> >  pbl-$(CONFIG_CPU_32v7) += cache-armv7.o
> >  obj-$(CONFIG_CACHE_L2X0) += cache-l2x0.o
> > +obj-$(CONFIG_ARM_SMP_TWD) += smp_twd.o
> >  
> >  pbl-y += start-pbl.o
> > diff --git a/arch/arm/cpu/smp_twd.c b/arch/arm/cpu/smp_twd.c
> 
> I was thinking about a drivers/clocksource directory. Maybe this would
> be a good opportunity to start it?
I was thining about it too as I've the same timer on SH and ARM and nomadik
and ux5x0

Best Regards,
J.

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

      reply	other threads:[~2012-10-04  9:56 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-04  7:01 Jean-Christophe PLAGNIOL-VILLARD
2012-10-04  7:24 ` Sascha Hauer
2012-10-04  9:54   ` Jean-Christophe PLAGNIOL-VILLARD [this message]

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=20121004095415.GI26553@game.jcrosoft.org \
    --to=plagnioj@jcrosoft.com \
    --cc=barebox@lists.infradead.org \
    --cc=s.hauer@pengutronix.de \
    /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