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 &lt;jwboyer@gmail.com&gt;</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>&gt; Hi,<br>&gt; <br>&gt; 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>&gt; <br>&gt; I am not sure if I missed out something.<br>&gt; <br>&gt; I would really appreciate it if somebody could help me on this.<br>&gt; <br>&gt; I have posted the source code below, as well as the complete message.<br>&gt; <br>&gt; Many thanks!<br>&gt; <br>&gt; SOURCE CODE:<br>&gt;
 ----------------------------------------------------------------------<br>&gt; #include <linux><br>&gt; #include <linux><br>&gt; #include <linux><br>&gt; #include <linux><br>&gt; #include <linux><br>&gt; #include <linux><br>&gt; #include <linux><br>&gt; #include <asm><br>&gt; #include <asm><br>&gt; #include <linux><br>&gt; #include <linux><br>&gt; #include <asm><br>&gt; #include <asm><br>&gt; <br>&gt; MODULE_LICENSE("GPL");<br>&gt; <br>&gt; #define BCSR_BASE   0xC0002000<br><br>This is wrong.  It's 0x1C0002000.<br><br>&gt; #define BCSR0       0<br>&gt; #define BCSR1       1<br>&gt; #define BCSR2       2<br>&gt; <br>&gt; #define USER_LED    0x2<br>&gt; #define SIZE_TO_MAP 10<br>&gt; <br>&gt; #define LED_ON      0<br>&gt; <br>&gt; uint __iomem *bcsrbase = NULL;<br>&gt; <br>&gt; static int __init initFunction(void) {<br>&gt;    uint tmp;<br>&gt;    printk("&lt;1&gt; Calling init function.\n");<br>&gt;    printk("&lt;1&gt; bcsrbase value %p...\n",bcsrbase);<br>&gt;   
 printk("&lt;1&gt; Remapping %x...\n",BCSR_BASE);<br>&gt;    /*map*/<br>&gt;    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>&#32;



      <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>