How does one get physical address for iorempped window?
[ Perhaps not directly linux-ppc question ]
I am trying to get jffs working on my board and in trying to debug this I need to know this. The jffs driver requires that I map the flash address space usinng ioremap_nocache or ioremap, when debugging I need to see exactly which addresses its writing the CFI query commands.
My question is --
If I map memory window using ioremap_nocache() if I use virt_to_phys() should one get back the actual physical address? If virt_to_phys is not the correct function to use, how do I get exact physical address?
Thanks.
/Subodh Nijsure
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
Quoted 2 lines · Subodh Nijsure
If I map memory window using
ioremap_nocache()if I usevirt_to_phys()should one get back the actual physical address?
Ummmm....you give ioremap_nocache() a physical address to map, so you have to know it........Using virt_to_phys() may not give you the proper physical address, depending upon the platform. I'm working on a solution for 2.5 that will work. Currently, it is wrapped into a heavier weight virt_to_bus/phys() but that many not be the right place.
-- Dan
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/