From: "Grant Likely" <grant.likely@secretlab.ca>
To: "Marcelo Dalmas" <m_dalmas@yahoo.com.br>
Cc: linuxppc-embedded@ozlabs.org
Subject: Re: mpc52xx_mmap_ctl access
Date: Tue, 1 Apr 2008 22:15:35 -0600 [thread overview]
Message-ID: <fa686aa40804012115oe92ed1ald314b25cfaa5805@mail.gmail.com> (raw)
In-Reply-To: <132281.10315.qm@web50302.mail.re2.yahoo.com>
On Tue, Apr 1, 2008 at 11:03 AM, Marcelo Dalmas <m_dalmas@yahoo.com.br> wrote:
> Hi all!
>
> I'm updating a device driver from linux 2.6.16 ppc
> tree to linux 2.6.24 powerpc in a lite5200 based
> board.
>
> I need to access mpc52xx_mmap_ctl and mpc52xx_cslpc.
>
> In ppc tree I do:
>
> mmap_ctl =
> ioremap(MPC52xx_PA(MPC52xx_MMAP_CTL_OFFSET),
> MPC52xx_MMAP_CTL_SIZE)
>
> How can I access it in powerpc tree?
1) In your device tree, add a new node for the local plus bus control
registers with the correct base address.
2) Use of_find_compatible_node() to get a pointer to the node in your
platform init code.
3) Use of_iomap() to map the registers into the kernel address space.
Cheers,
g.
--
Grant Likely, B.Sc., P.Eng.
Secret Lab Technologies Ltd.
prev parent reply other threads:[~2008-04-02 4:15 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-01 17:03 mpc52xx_mmap_ctl access Marcelo Dalmas
2008-04-02 4:15 ` Grant Likely [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=fa686aa40804012115oe92ed1ald314b25cfaa5805@mail.gmail.com \
--to=grant.likely@secretlab.ca \
--cc=linuxppc-embedded@ozlabs.org \
--cc=m_dalmas@yahoo.com.br \
/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;
as well as URLs for NNTP newsgroup(s).