Did you set bit 4-5 of the PROT_CTRL register properly? Does PIO mode work? Do you need to do cache operation if the buffer is cacheable?
-----Original Message-----
From: Kaushik Choudhury [mailto:community-noreply@qnx.com]
Sent: Wednesday, April 02, 2014 9:03 AM
To: ostech-core_os
Subject: DMA on imx6 platform giving wrong values
Hi
Iam working on porting linux sdio driver on to QNX. For sending CMD53 i have created a virtual memory using MMAP and got the physical address of this mmap return virtual memory using function mem_offset.
The problem is when i have to do DMA read of 4 byte value using the physical address that i got above i get value in form of BIG ENDIAN.
Example in place of 1 i get 0x1000000.
The imx6 processor when executing CMD53 for read and write is expecting and giving me value in BIGENDIAN were as it is little ENDIAN in case of linux.
Please let me known is there anything wrong that iam doing or is this the right way it works.
Regards
Kaushik
_______________________________________________
OSTech
http://community.qnx.com/sf/go/post109748
To cancel your subscription to this discussion, please e-mail ostech-core_os-unsubscribe@community.qnx.com
_______________________________________________
OSTech
http://community.qnx.com/sf/go/post109753
To cancel your subscription to this discussion, please e-mail ostech-core_os-unsubscribe@community.qnx.com