Problem reading and programming memory location...
neorf3k
neorf3k at gmail.com
Thu Nov 14 20:49:26 EST 2013
Sorry, the address is 0x10020000.
I've executed this code:
/* code */
unsigned char *virt_base;
u8 regval;
/* map 4kbyte reg. space */
virt_base = ioremap(0x10020000, 0x1000);
if (!virt_base) {
printk("fpga ioremap failed\n");
return;
}
regval = in_8(virt_base);
printk("reg. value 0x%02x\n", regval);
printk("reg. value %x\n", virt_base);
/* code */
and i've:
reg. value 0x10
address c90e8000
in U-BOOT in reg. value i've: 0xf8
Thank you so much again…
Lorenzo
On 14/nov/2013, at 10:09 AM, Anatolij Gustschin <agust at denx.de> wrote:
> u8 regval;
>
> /* map 4kbyte reg. space */
> virt_base = ioremap(0x10020000, 0x1000);
> if (!virt_base) {
> printk("fpga ioremap failed\n");
> return;
> }
>
> regval = in_8(virt_base);
>
> printk("reg. value 0x%02x\n", regval);
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ozlabs.org/pipermail/linuxppc-dev/attachments/20131114/ff57b23b/attachment.html>
More information about the Linuxppc-dev
mailing list