how can i get the virtual address of ts7200,
i use the following source,
error_io=check_mem_region(SMCBCR3,8);
if(error_io<0)
{
return error_io;
}
request_mem_region(SMCBCR3,8,"smcbcr");
Address=(unsigned char *)ioremap(SMCBCR3,8);
printk("address=%x v_address=%x\n",SMCBCR3,Address);
writew(bankcfg,Address);
if(check_mem_region(DAC_offset,DAC_Size))
{
printk("DAC already in use\n");
return -EBUSY;
}
if (!request_mem_region(DAC_offset, DAC_Size, DAC_name))
{ printk("request_mem_region 0x30000080L error!\n");
return -EBUSY;
}
AT91_DAC_ADDR = (unsigned char*)ioremap(DAC_offset,DAC_Size);
printk("AT_91=%x vAT_91=%x\n",DAC_offset,AT91_DAC_ADDR);
******************************************
we get the following result
address=8008000c v_address=c604000c
AT_91=30000080 vAT_91=c6040080
Unhandled fault: external abort on non-linefetch (0x81a) at 0xc6040080
pgd = c5074000
who can tell me what's wrong with my code
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/ts-7000/join
(Yahoo! ID required)
<*> To change settings via email:
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|