summaryrefslogtreecommitdiffstats
path: root/include/linux/mfd
diff options
context:
space:
mode:
authorPatil, Rachna <rachna@ti.com>2013-07-20 17:27:35 +0100
committerSamuel Ortiz <sameo@linux.intel.com>2013-07-31 02:04:34 +0200
commitefe3126afce32e3100af3029a80701d47e1b6999 (patch)
tree7c3d2528a2bdb158fd6720637239c7c7716702cf /include/linux/mfd
parentebe38f80b290fe6d86404d0b21eae479d4aeb21f (diff)
downloadop-kernel-dev-efe3126afce32e3100af3029a80701d47e1b6999.zip
op-kernel-dev-efe3126afce32e3100af3029a80701d47e1b6999.tar.gz
MFD: ti_tscadc: ADC Clock check not required
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 <rachna@ti.com> Signed-off-by: Zubair Lutfullah <zubair.lutfullah@gmail.com> Signed-off-by: Lee Jones <lee.jones@linaro.org> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'include/linux/mfd')
-rw-r--r--include/linux/mfd/ti_am335x_tscadc.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/include/linux/mfd/ti_am335x_tscadc.h b/include/linux/mfd/ti_am335x_tscadc.h
index 8d73fe2..71bb41c 100644
--- a/include/linux/mfd/ti_am335x_tscadc.h
+++ b/include/linux/mfd/ti_am335x_tscadc.h
@@ -114,7 +114,6 @@
#define CNTRLREG_TSCENB BIT(7)
#define ADC_CLK 3000000
-#define MAX_CLK_DIV 7
#define TOTAL_STEPS 16
#define TOTAL_CHANNELS 8
OpenPOWER on IntegriCloud