summaryrefslogtreecommitdiff
path: root/include/linux/mfd
diff options
context:
space:
mode:
authorVarun Wadekar <vwadekar@nvidia.com>2011-02-02 10:56:49 +0530
committerDan Willemsen <dwillemsen@nvidia.com>2011-11-30 21:42:58 -0800
commit320ed1decdc7975cc6fdabd40afc893e81f29192 (patch)
tree494dba197391d7ff29e3dcc34ca5dc35c2ca4b6f /include/linux/mfd
parentd10ab1cfc666f68dbed0b277bb871f055f9cd88a (diff)
mfd: tps6586x: fix alarm1 support
instead of clearing the irq for alarm enable/disable, the proper bit in RTC_CONFIG has to be set/cleared. tps6586 does not support 1/sec update counter so remove support for update_irq_enable. replace it with alarm_irq_enable. Original-Change-Id: Iee66a6625e810169253a750faf3f12d20d65d7d9 Signed-off-by: Varun Wadekar <vwadekar@nvidia.com> Reviewed-on: http://git-master/r/17990 Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Rebase-Id: Rdb0b1eef71cba9887cab4acaa093316f18af60ed
Diffstat (limited to 'include/linux/mfd')
-rw-r--r--include/linux/mfd/tps6586x.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/linux/mfd/tps6586x.h b/include/linux/mfd/tps6586x.h
index bd20aa696485..9002714f1f68 100644
--- a/include/linux/mfd/tps6586x.h
+++ b/include/linux/mfd/tps6586x.h
@@ -54,8 +54,18 @@ struct tps6586x_subdev_info {
void *platform_data;
};
+struct tps6586x_epoch_start {
+ int year;
+ int month;
+ int day;
+ int hour;
+ int min;
+ int sec;
+};
+
struct tps6586x_rtc_platform_data {
int irq;
+ struct tps6586x_epoch_start start;
};
struct tps6586x_platform_data {