mpc52xx_mmap_ctl access
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?
Thank you,
Marcelo Dalmas
Abra sua conta no Yahoo! Mail, o único sem limite de espaço para armazenamento!
http://br.mail.yahoo.com/
Quoted 8 lines · Marcelo Dalmas
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_ctlandmpc52xx_cslpc.
Quoted 7 lines
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.
Signature · 2 lines
Grant Likely, B.Sc., P.Eng. Secret Lab Technologies Ltd.