P2040: DMA for interfaces

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

P2040: DMA for interfaces

2,543 次查看
gouravjain
Contributor IV

Hi All,

I was reading about DMA , P2040RM chapter-21. While reading, came across several points those are not clear,

1) Does DMA support to all interface like I2C/SPI/eLBC/ PCIe  etc?? 

2) How to enable DMA in driver code?? How to verify is it enabled or not ??

3) How one can do performance testing with and with out DMA?

Help would be highly appreciated ....

--

gourav

标签 (1)
标记 (3)
3 回复数

2,424 次查看
ufedor
NXP Employee
NXP Employee

1) I2C, SPI - no.

eLBC and PCIe - yes.

Basically the DMA can perform memory-to-memory transfers (where "memory" is an area directly mapped into the local SOC address space).

2-3) Please refer to the Linux SDK documentation:

Submit Form 

2,424 次查看
gouravjain
Contributor IV

Hi,

I didn't understand why DMA support is not available for I2C and SPI??

And another point, according to mentioned link we have to enable DMA in make menuconfig (before kernel compilation ) but which all interfaces will be using DMA?? How kernel will come to know ?? 

0 项奖励
回复

2,424 次查看
ufedor
NXP Employee
NXP Employee

why DMA support is not available for I2C and SPI??

because these memories ARE NOT directly mapped into the SOC local address space.

 which all interfaces will be using DMA??

it does not matter, because DMA transfer is performed from one memory area directly mapped into the SOC local address space to another similar area.

0 项奖励
回复