01 Mar, 2013
2 commits
-
ADC is ideally expected to work at a frequency of 3MHz.
The present code had a check, which returned error if the frequency
went below the threshold value. But since AM335x supports various
working frequencies, this check is not required.
Now the code just uses the internal ADC clock divider to set the ADC
frequency w.r.t the sys clock.Signed-off-by: Patil, Rachna
-
The code did not have context save done on IRQ register bits
for the MFD device.
Also the control register bits after resume were loaded to the
default value. Now changes have been made to save both IRQ and control
register bits in MFD core.
In ADC client the mode in which ADC is operating has to store,
hence modify the step_config function to pass the current mode.Signed-off-by: Patil, Rachna
22 Feb, 2013
1 commit
-
The ADC driver did not check for FIFO1 underflow and overrun
conditions. Add support to handle these conditions.
TSC/ADC module does not recover from this state by itself,
a module reset is required.Signed-off-by: Patil, Rachna
12 Feb, 2013
3 commits
-
Current ADC driver supports only one shot mode.
Now ADC driver is enhanced to capture data continuously
from /dev/iio:deviceX interface.ADC is now IRQ based, on interrupt ADC copies data onto
a software buffer, which is exposed to user.Signed-off-by: Patil, Rachna
-
Previously we tried to read data form ADC even before ADC sequencer
finished sampling. This led to wrong samples.We now wait on ADC status register idle bit to be set.
Signed-off-by: Patil, Rachna
-
Not all children(TSC/ADC) are available on all platforms.
Previously either of TSC/ADC which is not required had to be
explicitly disabled from menuconfig.
Now registering a client driver is based on whether respective client
platform data is present or not.Signed-off-by: Hebbar Gururaja
Signed-off-by: Patil, Rachna
Acked-by: Vaibhav Hiremath
10 Sep, 2012
1 commit
-
ADC uses steps from the end i.e. from 16 towards 0.
The current code does not enable steps 15 and 16
due to which even if steps 15 and 16 are configured
they do not get applied.
Due to which junk values were read on these channels.
Correcting the same.Signed-off-by: Patil, Rachna
31 Aug, 2012
3 commits
-
This patch adds support for TI's ADC driver.
This is a multifunctional device.
Analog input lines are provided on which
voltage measurements can be carried out.
You can have upto 8 input lines.Signed-off-by: Patil, Rachna
-
This patch converts touchscreen into a MFD client.
All the register definitions, clock initialization,
etc has been moved to MFD core driver.Signed-off-by: Patil, Rachna
-
Add the mfd core driver which supports touchscreen
and ADC.
With this patch we are only adding infrastructure to
support the MFD clients.Signed-off-by: Patil, Rachna