From 3da45a03a1af70e308592727ac134ce9d30d6b0f Mon Sep 17 00:00:00 2001 From: David Schalig Date: Thu, 10 Mar 2011 21:49:33 +0900 Subject: [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 Tested-by: Varun Colbert Reviewed-by: David Schalig Reviewed-by: Jonathan Mayo --- include/linux/mfd/tps6586x.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'include') 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 { -- cgit v1.2.3