diff options
author | Jon Mayo <jmayo@nvidia.com> | 2010-09-09 11:46:18 -0700 |
---|---|---|
committer | Varun Colbert <vcolbert@nvidia.com> | 2010-10-26 15:03:36 -0700 |
commit | 35e97aa59eaa0cc7233c100edc0aa3e7b4e1605e (patch) | |
tree | 743512854b2ce749bd92eb09c6ae52688b8ff1a8 /arch/arm/mach-tegra/include | |
parent | dc9cea61b3333432d6c1d2003a1bdb9ce055f04a (diff) |
[arm/tegra] support RTC alarm interrupt in odm_kit
New API added to odm_kit to register a callback to use on RTC interrupt.
Supported added for RTC alarms in the max8907b PMU.
Bug 717253
Bug 734529
Change-Id: I34abebd7dd3caf4ef8923fcf651c50f6d245f6b4
Reviewed-on: http://git-master/r/7328
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-by: Jonathan Mayo <jmayo@nvidia.com>
Tested-by: Jonathan Mayo <jmayo@nvidia.com>
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>
Diffstat (limited to 'arch/arm/mach-tegra/include')
-rw-r--r-- | arch/arm/mach-tegra/include/nvodm_pmu.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/include/nvodm_pmu.h b/arch/arm/mach-tegra/include/nvodm_pmu.h index b20f536ebb82..00e94168d1ef 100644 --- a/arch/arm/mach-tegra/include/nvodm_pmu.h +++ b/arch/arm/mach-tegra/include/nvodm_pmu.h @@ -482,6 +482,35 @@ NvBool NvOdmPmuIsRtcInitialized( NvOdmPmuDeviceHandle hDevice); +/** + * Registers a callback function for PMU RTC Alarm. + * + * @param hDevice A handle to the PMU. + * @param func Callback function to call on alarm interrupt. + * @return NV_TRUE if successfully registered, or NV_FALSE on failure. + */ +NvBool +NvOdmPmuAlarmHandlerSet( + NvOdmPmuDeviceHandle hDevice, + NvBool (*func)(NvOdmPmuDeviceHandle)); + +/** + * Prep PMU for suspend. + * @param hDevice A handle to the PMU. + * @return NV_TRUE if successful, or NV_FALSE otherwise. + */ +NvBool +NvOdmPmuSuspendRtc( + NvOdmPmuDeviceHandle hDevice); + +/** + * Restore PMU from suspend. + * @param hDevice A handle to the PMU. + * @return NV_TRUE if successful, or NV_FALSE otherwise. + */ +NvBool +NvOdmPmuResumeRtc( + NvOdmPmuDeviceHandle hDevice); #if defined(__cplusplus) } |