How to use SDMA in i.MX7D ?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to use SDMA in i.MX7D ?

Jump to solution
4,074 Views
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

Labels (3)
0 Kudos
1 Solution
2,640 Views
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

View solution in original post

4 Replies
2,640 Views
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 Kudos
2,642 Views
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hi ko-hey,

Yes, it is provided as GPLv2

Regards

2,642 Views
ko-hey
Senior Contributor II

Hi Bio_TICFSL

Could you follow and answer the question ?

Ko-hey

0 Kudos
2,641 Views
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