Read/write BCSR registers of PPC460EX
    Benjamin Herrenschmidt 
    benh at kernel.crashing.org
       
    Wed May  4 15:37:00 EST 2011
    
    
  
On Mon, 2011-05-02 at 08:40 -0400, Josh Boyer wrote:
> Aside from minor things like using unsigned int instead of unsigned
> long, the code looks correct.  The thing to check is if you are
> ioremapping the right physical address, and making sure you're reading
> a
> proper location. 
Which is why he should obtain the location from the device-tree rather
than hard coding it !
Cheers,
Ben.
    
    
More information about the Linuxppc-dev
mailing list