aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/mfd/twl6030-gpadc.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/mfd/twl6030-gpadc.c b/drivers/mfd/twl6030-gpadc.c
index e754d87..3b96c01 100644
--- a/drivers/mfd/twl6030-gpadc.c
+++ b/drivers/mfd/twl6030-gpadc.c
@@ -1392,6 +1392,12 @@ static int __devinit twl6030_gpadc_probe(struct platform_device *pdev)
if (ret)
dev_err(&pdev->dev, "could not create sysfs files\n");
+#ifdef CONFIG_MACH_TUNA
+ /* Enables reading of values from channel 2 */
+ twl6030_gpadc_write(gpadc, TWL6030_GPADC_CTRL,
+ TWL6030_GPADC_CTRL_SCALER_EN);
+#endif
+
return 0;
err_calib: