Thread (5 messages) flat view 5 messages, 5 authors, 2005-08-09

Re: MPC8555CDS & CCSRBAR

From: Kumar Gala <hidden>
Date: 2005-08-09 14:33:25

On Aug 9, 2005, at 9:15 AM, Gerhard Jaeger wrote:
On Tuesday 09 August 2005 16:04, Eric Kampman wrote:
quoted
Trying to port an SEC driver to Linux/PPC8555. Reading
the default CCSRBAR @ 0xFF700000 I read 0xFFFFFFFF
which is wrong. Looking at Metrowerks init files and
uboot code (1.1.2) I see it's likely been moved to
0xE0000000, but I get a seg fault when I try to read
there.

So, what am I doing wrong, and even better, how do I
at runtime find out where CCSRBAR is? Thanks in
advance, and please forgive the likely ignorance,

Eric
use the get_ccsrbar() function to get the address, then ioremap()
will be your friend ;)
Depending on the kernel version you might want to use the driver  
model instead.  There is an entry for the security engine which will  
give you the physical address to ioremap and the interrupt number to  
use.  Doing this will be more portable.  However, this is only in  
newer 2.6 kernels.

- kumar
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help