FSL ESAI drivers in 3.10.17 linux imx : IMX6

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

FSL ESAI drivers in 3.10.17 linux imx : IMX6

777 Views
sharvari
Contributor I

Hello,

     I am working on a custom board based on Sabreauto imx6 solo board. our board has custom audio codecs. So I need to add custom drivers on top of fsl_esai driver. I am using linux-imx 3.10.17 kernel.  While looking at the fsl_esai.h file , I found some #defines such as

#define ESAI_TFCR_TE(x) ((0x3f >> (6 - ((x + 1) >> 1))) << 2)

#define ESAI_RFCR_RE(x) ((0xf >> (4 - ((x + 1) >> 1))) << 2)

How exactly are these used ?

In the newer kernel (3.14.28) , I see these defines are changed. How to relate these two?

-Thanks

Sharvari Harisangam

0 Kudos
2 Replies

375 Views
joanxie
NXP TechSupport
NXP TechSupport

#define ESAI_TFCR_TE(x) ((0x3f >> (6 - ((x + 1) >> 1))) << 2)

(x + 1) >> 1) it means every cghannel occupy one tx.

Re: MX6 ESAI CLOCK ISSUE

hope this link is useful for you.

0 Kudos

375 Views
sharvari
Contributor I

Hello Guanqiong Xie,

      I am not able to access the link you have shared .

0 Kudos