i.MX233 - How to enable LRADC driver?

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

i.MX233 - How to enable LRADC driver?

1,723 Views
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

Labels (1)
0 Kudos
6 Replies

949 Views
OtavioSalvador
Senior Contributor II

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

0 Kudos

949 Views
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 Kudos

949 Views
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 Kudos

949 Views
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 Kudos

949 Views
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.

949 Views
sujathap_m_
Contributor I

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

0 Kudos