Skip to contentSkip to conversation

__ioremap in physmem.c

DISCUSSION Ashwin 1 participant 1 message Jun 21, 2001 Memory technology devices (MTD)

lore
Share & tools
lore

Ashwin

author
#0 lore raw

Hi friends,
I am trying to get the mtd working on the L7205 board. I am getting the
following problem.
The __ioremap() call in physmem.c calls the function with only two
parameters but the __ioremap() in the kernel expects 3 parmaters while only 2 are passed the third i.e flag is not sent. What should be the flag to this call and the significance of the flag ?

Another thing is that if I send the flag as zero the call does not return it gives the error "bad pmd in pte_allocl_kernel".

Also what should be the macros for the functions readb,writeb,...... for L7205 board at present I have put just printk's there or do I use the macros in include/asm-arm/arch-linkup/io.h but they seem to be io calls (am I correct ?)

Could any one please guide me ?

Thanks,
Regards,
Ashwin.