From: Catalin Marinas <catalin.marinas@arm.com>
To: Rob Herring <robherring2@gmail.com>
Cc: Neil Zhang <zhangwm@marvell.com>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
Yu Tang <ytang5@marvell.com>, Zhou Zhu <zzhu3@marvell.com>,
Will Deacon <Will.Deacon@arm.com>
Subject: Re: [Question] Ask for arm arch timer
Date: Wed, 16 Oct 2013 14:20:43 +0100 [thread overview]
Message-ID: <20131016132042.GC4196@arm.com> (raw)
In-Reply-To: <525E8DAD.60801@gmail.com>
On Wed, Oct 16, 2013 at 01:59:25PM +0100, Rob Herring wrote:
> On 10/16/2013 07:39 AM, Neil Zhang wrote:
> > I saw your following patch called clocksource_of_init() directly in
> > time_init() for arm64.
> > My question is that what should we do if there are some Soc special
> > work need to be done before arch timer can be used?
> > Thanks in advance.
>
> If the timer itself is different, then you should have a different DT
> compatible string which you can use to trigger additional initialization.
>
> Integration level initialization like enabling clocks would need
> something different as no machine descriptors exist for arm64.
>
> Another option would be do the setup in secure world or the bootloader.
The generic timer should indeed be initialised in the firmware
(bootloader may not be suitable if initialisation needs to happen on
each CPU). Linux doesn't need to do other things than reading the
frequency, programming the interrupts, counters (but definitely not
SoC-specific initialisation).
> Can you be more specific what initialization is needed.
I'm interested in this as well.
--
Catalin
next prev parent reply other threads:[~2013-10-16 13:21 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-16 12:39 [Question] Ask for arm arch timer Neil Zhang
2013-10-16 12:59 ` Rob Herring
2013-10-16 13:20 ` Catalin Marinas [this message]
2013-10-17 1:25 ` Neil Zhang
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=20131016132042.GC4196@arm.com \
--to=catalin.marinas@arm.com \
--cc=Will.Deacon@arm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=robherring2@gmail.com \
--cc=ytang5@marvell.com \
--cc=zhangwm@marvell.com \
--cc=zzhu3@marvell.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox