From: arnd@arndb.de (Arnd Bergmann)
To: linux-arm-kernel@lists.infradead.org
Subject: ioremap to a specific virtual address
Date: Fri, 23 Mar 2012 15:20:22 +0000 [thread overview]
Message-ID: <201203231520.22588.arnd@arndb.de> (raw)
In-Reply-To: <CAKON4OzF9KV=51yAR2pVHJZNQsGDkXVhBwbn4njhZPRjeh=-dA@mail.gmail.com>
On Friday 23 March 2012, jonsmirl at gmail.com wrote:
> I will need to check how similar the chips actually are. NXP did not
> use primecells in the lpc31xx family.
>
> I'd be happy to have some help. My trees are here:
> https://github.com/jonsmirl
I've taken a brief look at your tree, some comments:
* Once you're done with the DT conversion, you should be able to
completely remvoe the three board files. You probably know that already
* We're merging the new common clock framework in v3.4. Once that has
matured, all new platforms will be required to use it. You should probably
move to that already.
* The dma driver uses a nonstandard interface and should be moved to
drivers/dma, using the dmaengine API.
* The __REG needs to be removed. All MMIO register accesses should go
through readl/writel or readl_relaxed/writel_relaxed, using a pointer
you get from ioremap.
* gpio*.c should get moved to drivers/gpio/gpio-lpc31xx. If it's similar
to the 32xx version, merge the two
* i2c.c should no longer be needed with the device tree, but you might
have to add stuff to i2c-pnx.c. That file is shared with pnx4008 and
lpc32xx.
* irq.c will eventually go to drivers/irqchip/. We have a plan to create
that directory, but nobody has started moving drivers there.
* Some of the header files have been removed on other platforms, you
should do the same.
* Regarding the static mappings, it certainly makes sense to map all of
ABP01_PHYS and IO_APB2_PHYS using 1MB mappings, for performance reasons,
and I guess you need INTC_PHYS to be mapped, too, for the interrupt
controller code to work. However, none of the drivers should be aware
of this and just call ioremap anyway, which will now return an address
from the static mapping.
Arnd
next prev parent reply other threads:[~2012-03-23 15:20 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-23 0:23 ioremap to a specific virtual address jonsmirl at gmail.com
2012-03-23 4:00 ` Nicolas Pitre
2012-03-23 4:17 ` jonsmirl at gmail.com
2012-03-23 4:28 ` Nicolas Pitre
2012-03-23 13:25 ` jonsmirl at gmail.com
2012-03-23 14:07 ` Arnd Bergmann
2012-03-23 14:32 ` jonsmirl at gmail.com
2012-03-23 14:49 ` Arnd Bergmann
2012-03-23 15:20 ` Arnd Bergmann [this message]
2012-03-23 18:28 ` jonsmirl at gmail.com
2012-03-23 19:31 ` Arnd Bergmann
2012-03-24 1:14 ` jonsmirl at gmail.com
2012-03-25 17:34 ` Arnd Bergmann
2012-03-26 8:47 ` Arnd Bergmann
2012-03-26 13:11 ` jonsmirl at gmail.com
2012-03-26 11:21 ` jonsmirl at gmail.com
2012-03-23 14:52 ` Roland Stigge
2012-03-23 15:05 ` jonsmirl at gmail.com
2012-03-23 15:12 ` Roland Stigge
2012-03-31 23:12 ` jonsmirl at gmail.com
2012-03-31 23:52 ` Nicolas Pitre
2012-04-01 0:08 ` jonsmirl at gmail.com
2012-04-01 19:46 ` Arnd Bergmann
2012-04-01 21:41 ` jonsmirl at gmail.com
2012-04-02 1:18 ` Nicolas Pitre
2012-04-02 7:31 ` Arnd Bergmann
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=201203231520.22588.arnd@arndb.de \
--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 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.