FSL ESAI drivers in 3.10.17 linux imx : IMX6

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

FSL ESAI drivers in 3.10.17 linux imx : IMX6

803 次查看
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

标记 (4)
0 项奖励
2 回复数

401 次查看
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 项奖励

401 次查看
sharvari
Contributor I

Hello Guanqiong Xie,

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

0 项奖励