summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDavid Schalig <dschalig@nvidia.com>2011-03-10 21:49:33 +0900
committerVarun Colbert <vcolbert@nvidia.com>2011-03-17 21:20:32 -0800
commit3da45a03a1af70e308592727ac134ce9d30d6b0f (patch)
treebb71163f9bfa1d8daa42b0f16e6fa7ae2eb3758c /include
parentf41f88597f60d169d51478fd89c0cf53e5868010 (diff)
[TPS658x RTC] Correct reg RTC_CTRL usage
Correct PRE_BYPASS (clock scaler 32kHz/1kHz select) bitfield. Add platform data to tune RTC XTAL capacitance in board file. Bug 798832, Tested on Ventana/wake via Alarm Clock Change-Id: I82d67610a815866707fc1db934d7d4d7cf93d883 Reviewed-on: http://git-master/r/22402 Reviewed-by: Varun Colbert <vcolbert@nvidia.com> Tested-by: Varun Colbert <vcolbert@nvidia.com> Reviewed-by: David Schalig <dschalig@nvidia.com> Reviewed-by: Jonathan Mayo <jmayo@nvidia.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/mfd/tps6586x.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/mfd/tps6586x.h b/include/linux/mfd/tps6586x.h
index c98b6fa4148b..6d6ddc983f10 100644
--- a/include/linux/mfd/tps6586x.h
+++ b/include/linux/mfd/tps6586x.h
@@ -63,6 +63,13 @@ struct tps6586x_settings {
enum pwm_pfm_mode sm_pwm_mode;
};
+enum {
+ TPS6586X_RTC_CL_SEL_1_5PF = 0x0,
+ TPS6586X_RTC_CL_SEL_6_5PF = 0x1,
+ TPS6586X_RTC_CL_SEL_7_5PF = 0x2,
+ TPS6586X_RTC_CL_SEL_12_5PF = 0x3,
+};
+
struct tps6586x_subdev_info {
int id;
const char *name;
@@ -81,6 +88,7 @@ struct tps6586x_epoch_start {
struct tps6586x_rtc_platform_data {
int irq;
struct tps6586x_epoch_start start;
+ int cl_sel; /* internal XTAL capacitance, see TPS6586X_RTC_CL_SEL* */
};
struct tps6586x_platform_data {