i.MX233 - How to enable LRADC driver?

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

i.MX233 - How to enable LRADC driver?

2,978 次查看
sujathap_m_
Contributor I

Hello,

I am using i.MX233 EVK from FSL ,and the Linux 2.6.31.

TO enable ADC driver we need to configure these things:

Device Drivers --->

    <M> Staging drivers  --->

         IIO staging drivers

            Analog to digital converters

           <M>   Freescale i.MX23 LRADC         

But  I didn't find IIO staging drivers, ADC, Freescale i.MX23 LRADC options under Staging drivers list. Then how can I enable LRADC driver?

I need to add the patch to my ADC driver, But I'm not finding the following Link- drivers/staging/iio/adc/mxs-lradc.c , where I made to change on this source code. Using this LRADC driver I need to read battery charge values. Can anyone help me to fix this problem?

Thanks in advance.

Regards,

Sujatha

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

2,204 次查看
OtavioSalvador
Senior Contributor II

For mxs-lradc I'd use 3.10 kernel. It works out of box.

0 项奖励
回复

2,204 次查看
sujathap_m_
Contributor I

Hello,

I have downloaded L2.6.31_10.05.00_SDK_SOURCE from freescale which is using Linux 2.6.31

Are you talking about the same?

If yes, it supports Touch screen, however, it doesn't support reading the channel RAW value.

Which module we need to enable to get LRADC registered as a device node?

0 项奖励
回复

2,204 次查看
OtavioSalvador
Senior Contributor II

Yes; it does support touchscreen and it does has the channels exported.

I am using it in 3.10.

The driver is mxs-lradc.

Regards,    

0 项奖励
回复

2,204 次查看
sujathap_m_
Contributor I

Hello,

Kernel 3.10 source code is not available from Freescale. Let me know from which module we need to enable to get LRADC registered as a device node in same Linux 2.6.31.

Regards,

Sujatha

0 项奖励
回复

2,204 次查看
OtavioSalvador
Senior Contributor II

For i.MX23 I use 3.10; 2.6.31 is way too old. I didn't check the official kernel.

2,204 次查看
sujathap_m_
Contributor I

Let me know from where I can get the kernel 3.10.

0 项奖励
回复