IMAP_ADDR is virtual or physical address?

2 messages, 2 authors, 2006-02-15 · open the first message on its own page

IMAP_ADDR is virtual or physical address?

From: dibacco@inwind.it <hidden>
Date: 2006-02-15 21:41:17

I'm wondering if IMAP_ADDR is a virtual address or a physical one. Normal=
ly I see things like this in drivers:

static volatile immap_t *immr =3D (immap_t *) IMAP_ADDR;

It seems therefore a virtual address.

But I can see the same also in some u-boot code where I imagine we are ac=
cessing physical addresses.

Clear my doubt please!!

Bye,

Re: IMAP_ADDR is virtual or physical address?

From: Kumar Gala <hidden>
Date: 2006-02-15 21:45:25

On Wed, 15 Feb 2006, dibacco@inwind.it wrote:
I'm wondering if IMAP_ADDR is a virtual address or a physical one. Normally I see things like this in drivers:

static volatile immap_t *immr = (immap_t *) IMAP_ADDR;

It seems therefore a virtual address.
IMAP_ADDR tends to be a physical address, however its mapped 1:1 in the 
kernel via io_block_mapping() on a number of systems to get the 1:1 
mapping.

This is somewhat frowned upon, and drivers should really do their own 
ioremap() with a physical address for IMAP_ADDR.
But I can see the same also in some u-boot code where I imagine we are accessing physical addresses.

Clear my doubt please!!
In u-boot everything is mapped 1:1 so there is no difference between virt 
and phys addrs.

- kumar
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help