diff options
author | Varun Wadekar <vwadekar@nvidia.com> | 2011-02-02 10:56:49 +0530 |
---|---|---|
committer | Varun Colbert <vcolbert@nvidia.com> | 2011-02-02 17:20:44 -0800 |
commit | 7184d208813f73be5e53e5c9b001be43e29bad52 (patch) | |
tree | d3d05438700c3ab686a081710480d8f2d7b8250c /include | |
parent | 78967cc4639b425dbc2da1e005db0df879f58cb5 (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.
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>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/mfd/tps6586x.h | 10 |
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 { |