__raw_writel for SAIF

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

__raw_writel for SAIF

753 次查看
StefanGeorge
Contributor I

I am using a custom board based on imx28 with the SAIF interface connected directly with the PCM output of a modem. I have written a dummy codec (with a line discipline that controls the modem), integrate it with mxs-devb.c. I am able to receive DMA irq but when __readl(SAIF0_DATA) i always receive 0x0. Even if i manualy write (__raw_writel(0x2131231, SAIF0_DATA_SET)) and then read the data i still get 0. 

Do you have any ideeas?

标签 (1)
0 项奖励
2 回复数

620 次查看
StefanGeorge
Contributor I

Thanks for the reply. 

Yes, it is true. If you write data to SAIF0_DATA it will be written to FIFO and when you read from SAIF0 it returns 0x0. 
I tried to not activate (write(0, SAIF0_DATA)) the transmission in the trigger function and the transmission doesn't do anything so that proves the fact that the writings do happen. 

zhengfudi said:

Note the SAIF's FIFO. Data written to SAIF0_DATA will be transmitted to FIFO immediately.

0 项奖励

620 次查看
F_D_
Contributor I

Note the SAIF's FIFO. Data written to SAIF0_DATA will be transmitted to FIFO immediately.

0 项奖励