From: arnd@arndb.de (Arnd Bergmann)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 2/4] rtc: sa1100: convert to run-time register mapping
Date: Wed, 04 Feb 2015 15:24:14 +0100 [thread overview]
Message-ID: <4228990.Thq3aQIjz2@wuerfel> (raw)
In-Reply-To: <CAL_JsqLSHrbQq2qFSpZyoiZ757xs8MHjNFD8+PKBGBTPmEatwA@mail.gmail.com>
On Wednesday 04 February 2015 07:49:25 Rob Herring wrote:
> On Wed, Feb 4, 2015 at 7:44 AM, Rob Herring <robh@kernel.org> wrote:
> > On Wed, Feb 4, 2015 at 7:25 AM, Arnd Bergmann <arnd@arndb.de> wrote:
> >> On Tuesday 03 February 2015 17:22:53 Rob Herring wrote:
> >>> SA1100 and PXA differ only in register offsets which are currently
> >>> hardcoded in a machine specific header. Some arm64 platforms (PXA1928)
> >>> have this RTC block also.
> >>>
> >>> Convert the driver to use ioremap and set the register offsets dynamically.
> >>> Since we are touching all the register accesses, convert them all to
> >>> readl/writel.
> >>>
> >>> Signed-off-by: Rob Herring <robh@kernel.org>
> >>> Cc: Alessandro Zummo <a.zummo@towertech.it>
> >>> Cc: rtc-linux at googlegroups.com
> >>
> >> Hmm, I really should have sent out my version of the patch ages ago.
> >
> > Got any others?
Look at the whole branch, it converts a couple of platforms
to CONFIG_MULTIPLATFORM: msm, mmp, realview, s3c64xx, versatile (your
patches), ep93xx (partially), gemini.
The patches are in different states and at least need proper
review, in some cases rewrite. The mmp patches should be
pretty much ready but I never got around to submit them.
> >> Can you have a look at
> >>
> >> http://git.kernel.org/cgit/linux/kernel/git/arnd/playground.git/commit/?h=multiplatform-3.19-next&id=4d9727883a363fb839e7d1633599166c0a08d644
> >>
> >> to see compare the approaches and see if there is anything I did that you
> >> missed?
> >
> > You used the relaxed variants seems to be the main difference. Yours
> > won't build on arm64 either.
>
> Also, I noticed the rtc-puv3 driver appears to be the same programming
> model. The quirks around interrupt clearing seem to be a bit different
> though.
Yes, I noticed before that not only is arch/unicore32 more or less a clone
of arch/arm (aside from cleanups that I asked for when it was submitted),
but the pkunity is also modeled around some IP blocks from sa1100/pxa.
According to http://mprc.pku.edu.cn/eng/intro.html, the work on that
SoC was done in a university lab with funding from Intel.
The CPU instruction set apparently has some differences, and the same
is likely true for the peripherals, it might be interesting to look at
drivers/video/fbdev/fb-puv3.c, drivers/i2c/busses/i2c-puv3.c,
drivers/pwm/pwm-puv3.c, arch/unicore32/kernel/gpio.c and
arch/unicore32/kernel/irq.c for more similarities. I don't think anyone
would bother changing those to use a common driver though, given the
state of unicore32.
Arnd
next prev parent reply other threads:[~2015-02-04 14:24 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-03 23:22 [PATCH 0/4] SA1100 RTC clean-up for ARM64 Rob Herring
2015-02-03 23:22 ` [PATCH 1/4] ARM: pxa: add memory resource to RTC device Rob Herring
2015-02-03 23:22 ` [PATCH 2/4] rtc: sa1100: convert to run-time register mapping Rob Herring
2015-02-04 13:25 ` Arnd Bergmann
2015-02-04 13:44 ` Rob Herring
2015-02-04 13:49 ` Rob Herring
2015-02-04 14:24 ` Arnd Bergmann [this message]
2015-02-04 17:30 ` Robert Jarzmik
2015-02-05 13:34 ` Rob Herring
2015-02-05 13:50 ` Russell King - ARM Linux
2015-02-05 19:18 ` Robert Jarzmik
2015-02-05 20:47 ` Rob Herring
2015-02-06 16:26 ` Robert Jarzmik
2015-02-05 23:37 ` Russell King - ARM Linux
2015-02-06 16:20 ` =Robert Jarzmik
2015-02-14 12:22 ` Robert Jarzmik
2015-02-03 23:22 ` [PATCH 3/4] ARM: sa1100: remove unused RTC register definitions Rob Herring
2015-02-03 23:22 ` [PATCH 4/4] ARM: mmp: " Rob Herring
2015-02-04 10:44 ` [PATCH 0/4] SA1100 RTC clean-up for ARM64 Russell King - ARM Linux
2015-02-04 13:58 ` Rob Herring
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=4228990.Thq3aQIjz2@wuerfel \
--to=arnd@arndb.de \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox