Re: [U-Boot] virt to phys mapping function

2008-11-20 Thread Wolfgang Denk
Dear Kumar, In message <[EMAIL PROTECTED]> you wrote: > > 1. what should the prototype of this function look like: > > phys_addr_t virt_to_phys (void * addr); That's what I'd prefer, especially since it can be easily resolved (for example, by an empty macro) where not really needed. > int vi

[U-Boot] virt to phys mapping function

2008-11-20 Thread Kumar Gala
In trying to get 36-bit physical working on 85xx I ran into an issue with the NAND driver. Its given a virtual address and trying to match it to which chipselect it maps to. The assumption in the code is that we have a 1:1 mapping and clearly that may not be true w/36-bit phys. So it seems