All of lore.kernel.org
 help / color / mirror / Atom feed
From: linus.walleij@linaro.org (Linus Walleij)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] ARM/sp810: introduce API to change system mode
Date: Mon, 27 Feb 2012 16:29:58 +0100	[thread overview]
Message-ID: <CACRpkdZgVSibWugOXcPU7Ai7zjGJMp0BMuKhjs-h0Y=Xee868g@mail.gmail.com> (raw)
In-Reply-To: <20120227105506.GS22562@n2100.arm.linux.org.uk>

On Mon, Feb 27, 2012 at 11:55 AM, Russell King - ARM Linux
<linux@arm.linux.org.uk> wrote:
> On Mon, Feb 27, 2012 at 11:38:14AM +0100, Linus Walleij wrote:
>> Maybe I'm delusional but I think this could help centralizing the use
>> of the SP* cells, since they're obviously used in both SPEAr and
>> versatile express.
>
> They can be used in any PrimeXsys based system, and I don't see that
> there's anything which guarantees having both a SP810 and SP804
> together.
>
> There are platforms which have SP804 without SP810 - Integrator CP
> and bcmring seem to fall into that category.

I was more thinking the other way around - I think that all systems
with an SP810 also have an SP804.

I'm led to thinking this because of these registers:

#define SCCTRL_TIMEREN0SEL_REFCLK       (0 << 15)
#define SCCTRL_TIMEREN0SEL_TIMCLK       (1 << 15)
#define SCCTRL_TIMEREN1SEL_REFCLK       (0 << 17)
#define SCCTRL_TIMEREN1SEL_TIMCLK       (1 << 17)

TIMER0 and TIMER1 seems to indicate TIMER0 and TIMER1
of the SP804 block.

In any case it seems to depend on CONFIG_ARM_TIMER_SP804.

> But... the register concerned does a whole load of other things, and
> I'm not sure we want to have accesses to it de-centralized.

Sure, just arch/arm/common/sc-810.c works fine as well.

Now I got incentive to finally write that letter to Greg about what
to do with system controllers.

Yours,
Linus Walleij

  reply	other threads:[~2012-02-27 15:29 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-23  9:13 [PATCH] ARM/sp810: introduce API to change system mode Viresh Kumar
2012-02-23 10:03 ` Russell King - ARM Linux
2012-02-23 10:31   ` Viresh Kumar
2012-02-27 10:38 ` Linus Walleij
2012-02-27 10:55   ` Russell King - ARM Linux
2012-02-27 15:29     ` Linus Walleij [this message]
2012-02-27 15:42       ` Russell King - ARM Linux
2012-02-29 20:14 ` Russell King - ARM Linux
2012-03-01  3:51   ` Viresh Kumar

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='CACRpkdZgVSibWugOXcPU7Ai7zjGJMp0BMuKhjs-h0Y=Xee868g@mail.gmail.com' \
    --to=linus.walleij@linaro.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    /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.