7 Feb 2002 05:24
RE: kernel memory mapping problem
John Zhou <zjhzou <at> newrocktech.com>
2002-02-07 04:24:42 GMT
2002-02-07 04:24:42 GMT
Another strange problem:
in my driver moduler, I can directly access cpu's registers such as port A, B,C,D( my IMMR = 0xF0000000 ), but
I can't directly read the SDRAM's value. for example:
int func()
{
unsigned char tmp[10];
unsigned char * p;
unsigned long val;
val = *( unsigned long * ) 0xF0010D0C; /* Port Open-Drain Registers (PODRA) */
p = __pa(tmp);
...
pI2cRxBD -> bd_addr = p;
...
...
}
Thanks in advance!
John
-----Original Message-----
From: ZhongJun Zhou [mailto:zjhzou <at> newrocktech.com]
Sent: Thursday, February 07, 2002 11:21 AM
To: linuxppc-embedded <at> lists.linuxppc.org
Subject: kernel memory mapping problem
(Continue reading)
RSS Feed