How to use SDMA in i.MX7D ?

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

How to use SDMA in i.MX7D ?

跳至解决方案
5,834 次查看
ko-hey
Senior Contributor II

Hi all

I plan to use i.MX7D and have questions about SDMA.

Could someone teach me the following questions ?

Q1.

I think the DMA works by loading the binary file and execute the program.

Is my understanding correct ?

Q2

If Q1 is yes, the binary is sdma-imx7d.bin which can found in following link.

http://git.freescale.com/git/cgit.cgi/imx/linux-2.6-imx.git/tree/firmware/imx/sdma?h=imx_4.1.15_1.0....

Am I correct ?

Q3

If Q2 is yes, please tell me the licence type.

According to the README.txt which is in linux-2.6-imx.git - Freescale i.MX Linux Tree , the firmware directory doesn't contain the GPL'ed work files.

This means that the conditions listed under GPL do not apply to firmware's directory.

Am I correct ?

Q4

If Q3 is yes, could you tell me the licence type ?

Ko-hey

标签 (3)
标记 (4)
0 项奖励
回复
1 解答
4,400 次查看
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hi ko-hey

A1: The driver provides an API for other drivers to control SDMA channels. SDMA channels run dedicated scripts according to peripheral and transfer types. The SDMA API driver is responsible for loading the scripts into SDMA memory, initializing the channel descriptors, and controlling the buffer descriptors and SDMA registers. the source files available in the directory / <Yocto_BuildDir>/linux/drivers/dma

dmaengine.c - SDMA management routine
imx-sdma.c   -  SDMA implement driver


the image files available in the directory / <Yocto_BuildDir>/linux/firmware/imx/sdma

sdma-mx7d.bin.ihex - SDMA RAM scripts

A2: Correct!

A3:  Unfortunately GPL can not be avoided, all sdma script from NXP has GPL on it. there is no any SDMA or API library without GPL license

Regards

在原帖中查看解决方案

4 回复数
4,400 次查看
ko-hey
Senior Contributor II

Hi Bio_TICFSL 

I have a additional question.

According to the linux code, the license is as it can be interpreted as either GPLv2 or later version.

Is sdma-imx7.bin being provided aware of the license as GPLv2 or later verison license?
If not, please tell me the exact version of the GPL.

Ko-hey

0 项奖励
回复
4,402 次查看
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hi ko-hey,

Yes, it is provided as GPLv2

Regards

4,402 次查看
ko-hey
Senior Contributor II

Hi Bio_TICFSL

Could you follow and answer the question ?

Ko-hey

0 项奖励
回复
4,401 次查看
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hi ko-hey

A1: The driver provides an API for other drivers to control SDMA channels. SDMA channels run dedicated scripts according to peripheral and transfer types. The SDMA API driver is responsible for loading the scripts into SDMA memory, initializing the channel descriptors, and controlling the buffer descriptors and SDMA registers. the source files available in the directory / <Yocto_BuildDir>/linux/drivers/dma

dmaengine.c - SDMA management routine
imx-sdma.c   -  SDMA implement driver


the image files available in the directory / <Yocto_BuildDir>/linux/firmware/imx/sdma

sdma-mx7d.bin.ihex - SDMA RAM scripts

A2: Correct!

A3:  Unfortunately GPL can not be avoided, all sdma script from NXP has GPL on it. there is no any SDMA or API library without GPL license

Regards