Oh is it 0x1C0002000?<br><br>Where can I get the document? What I have is 0xC0002000 from ep440xc_um_amcc.pdf file that I get from the accompanying PPC440EPx resource CD.<br><br>Thanks!<br><br>dell<br><br><b><i>Josh Boyer <jwboyer@gmail.com></i></b> wrote:<blockquote class="replbq" style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"> On Tue, 27 Nov 2007 02:47:45 -0800 (PST)<br>Dell Query <dell.query@yahoo.com> wrote:<br><br>> Hi,<br>> <br>> I am creating a simple program which will try to read the board ID of the PPC440EPx thru BCSR but when I load it, it gives me "Data Read PLB Error". <br>> <br>> I am not sure if I missed out something.<br>> <br>> I would really appreciate it if somebody could help me on this.<br>> <br>> I have posted the source code below, as well as the complete message.<br>> <br>> Many thanks!<br>> <br>> SOURCE CODE:<br>>
----------------------------------------------------------------------<br>> #include <linux><br>> #include <linux><br>> #include <linux><br>> #include <linux><br>> #include <linux><br>> #include <linux><br>> #include <linux><br>> #include <asm><br>> #include <asm><br>> #include <linux><br>> #include <linux><br>> #include <asm><br>> #include <asm><br>> <br>> MODULE_LICENSE("GPL");<br>> <br>> #define BCSR_BASE 0xC0002000<br><br>This is wrong. It's 0x1C0002000.<br><br>> #define BCSR0 0<br>> #define BCSR1 1<br>> #define BCSR2 2<br>> <br>> #define USER_LED 0x2<br>> #define SIZE_TO_MAP 10<br>> <br>> #define LED_ON 0<br>> <br>> uint __iomem *bcsrbase = NULL;<br>> <br>> static int __init initFunction(void) {<br>> uint tmp;<br>> printk("<1> Calling init function.\n");<br>> printk("<1> bcsrbase value %p...\n",bcsrbase);<br>>
printk("<1> Remapping %x...\n",BCSR_BASE);<br>> /*map*/<br>> bcsrbase = ioremap(BCSR_BASE, SIZE_TO_MAP);<br><br>Since this seems to be arch/ppc, use ioremap64.<br><br>josh<br>_______________________________________________<br>Linuxppc-embedded mailing list<br>Linuxppc-embedded@ozlabs.org<br>https://ozlabs.org/mailman/listinfo/linuxppc-embedded<br></asm></asm></linux></linux></asm></asm></linux></linux></linux></linux></linux></linux></linux></dell.query@yahoo.com></blockquote><br><p> 
<hr size=1>Never miss a thing. <a href="http://us.rd.yahoo.com/evt=51438/*http://www.yahoo.com/r/hs"> Make Yahoo your homepage.</a>