I am writing a driver for MIPS32. i wirte this code for DMA addr:
dma_vaddr =(char*) __get_free_pages(GFP_KERNEL|
GFP_DMA, order);
dma_phy = virt_to_phy(dma_vaddr);
i write dma_phy to DMA base register, but why it cannot work? it should write Kseg1 space to DMA register?
I remember that it is ok for ARM/X86 .
Best,
Figo.zhang
dma_phy = virt_to_phy(dma_vaddr);
i write dma_phy to DMA base register, but why it cannot work? it should write Kseg1 space to DMA register?
I remember that it is ok for ARM/X86 .
Best,
Figo.zhang